Update Tool Server API Definition
The Update Tool Server API enables you to modify the configuration of registered Model Context Protocol (MCP) servers. This API supports updating connection parameters, authentication settings, metadata, and operational status, allowing you to maintain and evolve your tool server integrations without re-registration.
Organizations use this API to update server endpoints after infrastructure changes, rotate authentication credentials, enable or disable servers for maintenance, update metadata for tracking and governance, and modify connection headers or parameters.
Update Tool Server Request and Response
To update a tool server, send a PATCH request to /v2/tool_servers/{tool_server_id}
. You specify the following parameters:
tool_server_id
(string, required): Tool server identifier in the URL path following patterntsr_[0-9a-zA-Z_-]+$
- Request body parameters (all optional):
name
(string): The human-readable name of the tool serverdescription
(string): Updated description of server capabilitiesuri
(string): The URI of the tool serverheaders
(object): HTTP headers to include when connectingtransport
(string): Transport protocol (must besse
if provided)auth
(object): Updated authentication configurationenabled
(boolean): Whether the server should be enabledmetadata
(object): Updated arbitrary metadata
The response includes the complete updated tool server configuration.
Example Request
1
Example Response
1
Error Responses
The API returns standard HTTP error codes with detailed error information:
HTTP Code | Error Code | Description |
---|---|---|
400 | invalid_request | Invalid parameters or malformed request |
400 | invalid_uri | New URI format is invalid |
400 | invalid_transport | Transport must be 'sse' |
401 | unauthorized | Invalid or missing API key |
403 | forbidden | Insufficient permissions for updating this tool server |
404 | server_not_found | Tool server with the specified ID does not exist |
409 | uri_conflict | Another server already uses the specified URI |
429 | rate_limit_exceeded | Update rate limit exceeded |
Important Notes
- Changes to URI or authentication may require re-synchronization
- Disabling a server makes all its tools unavailable to agents
- Consider testing connection changes before updating production servers
- Authentication credentials in responses are always redacted for security