Remove a tool from an agent
remove a custom tool from an agent.
DELETE
https://api.centerfy.ai/webhooks/inbound/agents/:id/custom-tools/:toolId Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | authenticates the request; or Authorization: Bearer <key>. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | the agent id. |
toolId | string (uuid) | Yes | the custom tool id to de-assign from the agent. |
Example
curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/agents/{id}/custom-tools/{toolId}" \
-H "x-api-key: $CENTERFY_API_KEY" import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.agents.removeCustomTool("<agentId>", "<toolId>");
console.log(result); centerfy agents remove-custom-tool <agentId> <toolId> MCP tool: centerfy_agents_remove_custom_tool (see MCP server)
Response
{
"status": "success",
"removed": true,
"agent_id": "<agent_id>",
"custom_tool_id": "<custom_tool_id>"
}Errors
400— if id or toolId is not a valid uuid.404— if the agent does not exist, or the tool isn’t assigned to it (‘Custom tool<id>is not assigned to agent<id>’).500— on failure.
Notes
Removes only the assignment between this agent and tool; the custom tool itself is untouched and can be re-assigned later.