Update Tool Server Tool

Tools

Update Tool Server Tool

Switch one of a server's tools on or off. On, it is callable from every conversation the agent has. Answers with the server and all its tools. A build key may do this.

PATCH/agents/{id}/mcp-servers/{serverId}/tools/{toolId}

Path parameters

idstringrequired
The agent's id (ag_…).
serverIdstringrequired
The tool server's id, mcp_…. The bare uuid is accepted too.
toolIdstringrequired
The tool's id on that server, tool_…, from the server's tools. The bare uuid is accepted too.

Headers

Katexs-Workspacestring
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.

Request body

enabledbooleanrequired
true lets the agent call this tool in every conversation; false takes it away.

Example request

bash
curl -X PATCH "https://app.katexs.com/api/v1/agents/{id}/mcp-servers/{serverId}/tools/{toolId}" \
  -H "Authorization: Bearer $KATEXS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": true
}'

Responses

StatusDescription
200The server, with the tool switched.
400enabled is not a boolean.
401The key is missing, wrong or revoked. The answer is always the same, whichever it is.
403The key's access level (read-only or build) does not allow this request, the plan does not include it, or a customer's key named another workspace in Katexs-Workspace. code says which: key_scope_read, key_scope_build, workspace_header_forbidden, or forbidden.
404No such tool on that server of this agent.
410The customer named in Katexs-Workspace was deleted. POST /customers/{id}/restore brings it back until its erase date.
429Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit.

Response fields

idstringrequired
The server's id, mcp_….
namestringrequired
Your name for it.
urlstringrequired
Its https:// address.
transportstringrequired
How it is spoken to. One of: http, sse.
signInstringrequired
token for a server reached with a header you sent; browser for one signed in through the console. One of: token, browser.
kindstringrequired
server for a tool server; store for a store connection made in the console, whose tools are a fixed list. One of: server, store.
authHeaderNamestring | nullrequired
The header the token is sent in.
hasSecretbooleanrequired
Whether a token is held. The token itself is never returned.
statusstringrequired
connected once it answered with its tools; failed when it could not be reached (see lastError); pending before the first answer.
lastErrorstring | nullrequired
Why the last attempt failed.
lastSyncedAtstring (date-time) | nullrequired
When it last listed its tools.
toolsobject[]required
What it offers, by name.
createdAtstring (date-time)required
When it was connected.
200 response
{
  "id": "mcp_5e1d2c7a-8b94-4f06-a3d1-2c9e7b5f0a18",
  "name": "Inventory",
  "url": "https://mcp.urbanloom.in/mcp",
  "transport": "http",
  "signIn": "token",
  "kind": "server",
  "authHeaderName": "Authorization",
  "hasSecret": true,
  "status": "connected",
  "lastError": null,
  "lastSyncedAt": "2026-10-06T10:22:31.402Z",
  "tools": [
    {
      "id": "tool_a2c47e19-3b5d-4f60-8e91-7d0b2c6f4a35",
      "name": "check_stock",
      "description": "Stock on hand for a product SKU, by warehouse.",
      "enabled": true
    },
    {
      "id": "tool_c9e03b72-61f4-4a8d-b257-0e4d9a1c3f86",
      "name": "find_order",
      "description": "An order's status and courier tracking by order number.",
      "enabled": true
    },
    {
      "id": "tool_f1b8d6a4-2e7c-4935-a0d1-6c3e9b5f7a20",
      "name": "list_collections",
      "description": "The store's current collections.",
      "enabled": false
    }
  ],
  "createdAt": "2026-10-06T10:22:29.918Z"
}

Last updated November 2026 · Found a problem? Email support@katexs.com