Skip to main content
DELETE
/
api
/
mcp-servers
/
{mcpServerId}
/
tool-approvals
/
{toolName}
curl -X DELETE "https://api.zudu.ai/api/mcp-servers/mcp_abc123def456/tool-approvals/send_email" \
  -H "X-API-KEY: sk_Abc123Def456..." \
  -H "X-API-SECRET: s3cr3t_Xyz789..." \
{
  "message": "Tool approval removed successfully",
  "status": "success",
  "error": null,
  "data": {
    "id": "mcp_abc123def456",
    "organization_id": "org_1234567890",
    "server_name": "My MCP Server",
    "approval_policy": "require_approval_per_tool",
    "tool_approval_hashes": []
  }
Delete a specific tool approval configuration from an MCP server.
curl -X DELETE "https://api.zudu.ai/api/mcp-servers/mcp_abc123def456/tool-approvals/send_email" \
  -H "X-API-KEY: sk_Abc123Def456..." \
  -H "X-API-SECRET: s3cr3t_Xyz789..." \
{
  "message": "Tool approval removed successfully",
  "status": "success",
  "error": null,
  "data": {
    "id": "mcp_abc123def456",
    "organization_id": "org_1234567890",
    "server_name": "My MCP Server",
    "approval_policy": "require_approval_per_tool",
    "tool_approval_hashes": []
  }

Headers

X-API-KEY
string
required
Your API key (format: sk_...)
X-API-SECRET
string
required
Your API secret (format: s3cr3t_...)

Path Parameters

mcpServerId
string
required
The MCP server ID (format: mcp_...)Example: mcp_abc123def456
toolName
string
required
Name of the tool approval to deleteMust match the exact tool name used when creating the approval.Example: "send_email"

Response Fields

id
string
Unique identifier for the MCP server
organization_id
string
Organization ID the server belongs to
server_name
string
Name of the MCP server
approval_policy
string
Current approval policy of the server
tool_approval_hashes
array
Remaining tool approval configurations (should not include the deleted tool)

Error Responses

error
string
Not Found - MCP server or tool approval does not exist
{
  "message": "MCP server not found",
  "status": "error",
  "error": "MCP server with ID 'mcp_abc123' does not exist in organization"
}
error
string
Unauthorized - Missing or invalid API key/secret
error
string
Internal Server Error - Failed to remove tool approval
{
  "message": "Failed to remove tool approval",
  "status": "error",
  "error": "Database connection failed"
}

Notes

  • The tool name must match exactly (case-sensitive)
  • After deletion, the tool will follow the server’s default approval policy
  • If the server uses require_approval_per_tool, removing a tool approval may change its behavior
  • The response includes the updated server object with remaining tool approvals