Add Agent Tool
Attach a tool to an agent (action, custom_function, mcp, agent, or workflow). The API handles catalog resolution and graph wiring.
type:
action—{ "type": "action", "connection_id": "...", "operation_ids": ["<catalog id>"] }custom_function—{ "type": "custom_function", "custom_function_id": "..." }mcp(registry) —{ "type": "mcp", "mcp_id": "<registry id>" }mcp(inline) —{ "type": "mcp", "url": "https://...", "name": "...", "transport": "streamable-http" }agent(sub-agent) —{ "type": "agent", "agent_id": "..." }workflow—{ "type": "workflow", "workflow_id": "..." }
Authorizations
API Key for authentication
Path Parameters
Query Parameters
Deploy the agent after adding so the change takes effect immediately.
Body
- AddActionTool
- AddCustomFunctionTool
- AddMcpTool
- AddSubAgentTool
- AddWorkflowTool
Attach connector operations as agent tools.
Response
Successful Response
Stable handle for this attached tool. Pass it to DELETE to remove the tool.
The kind of attached tool.
action, custom_function, mcp, agent, workflow Human-readable tool name.
Connector connection id. Actions only.
Operation catalog id. Actions only.
OpenAPI operationId. Actions only.
Custom function id. Custom functions only.
MCP registry id. MCP only.
Subset of MCP tools exposed. MCP only.
Referenced sub-agent or workflow id.

