Home / Servers / DigitalOcean API / genai_attach_agent_function
Add Function Route to an Agent
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Add Function Route to an Agent To create a function route for an agent, send a POST request to /v2/gen-ai/agents/{agent_uuid}/functions. [POST /v2/gen-ai/agents/{agent_uuid}/functions]
Name on the gateway: digitalocean_api__genai_attach_agent_function · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
agent_uuid required | string | Agent id |
body_agent_uuid | string | Agent id |
description | string | Function description |
faas_name | string | The name of the function in the DigitalOcean functions platform |
faas_namespace | string | The namespace of the function in the DigitalOcean functions platform |
function_name | string | Function name |
input_schema | object | Describe the input schema for the function so the agent may call it |
output_schema | object | Describe the output schema for the function so the agent handle its response |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__genai_attach_agent_function",
"arguments": {
"agent_uuid": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the add function route to an agent tool with agent_uuid set to ….