Change an MCP gateway
update_gatewayRename a gateway, set the API base URL its tools call (when the spec has none or the wrong one), or change its slug before it is first published. On a live gateway the base URL is used at once, so call without approved first, tell the person, and call again with approved: true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gateway_id": "<gateway_id>"
},
"name": "update_gateway"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| slug | No | ||
| approved | No | true only after the person has agreed to change a live gateway's base URL. | |
| base_url | No | https base URL of the API, e.g. https://api.example.com/v1. Empty string goes back to the spec's server. | |
| gateway_id | Yes |