MCP Gateway
ApiLocal tools

Bulk sync tools on a LOCAL server

Declarative sync: the client sends the desired tool state, and the gateway creates, updates, or deletes tools to reconcile. All changes are atomic (single transaction). Tool names must be unqualified. Only affects LOCAL-origin tools; script-origin tools are left untouched.

PUT
/api/v1/servers/{server_id}/tools

Path Parameters

server_id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://loading/api/v1/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/tools" \  -H "Content-Type: application/json" \  -d '{    "tools": [      {        "name": "string",        "description": "string"      }    ]  }'
{
  "tools_added": 0,
  "tools_updated": 0,
  "tools_removed": 0,
  "total_tools": 0
}
Empty
Empty
Empty