Enable/disable a deployed endpoint
toggle_endpointFlip a deployed endpoint between enabled and disabled while keeping its configuration. Use it to stop serving live traffic and restore it later; requires confirm=true to apply.
Instructions
Flips a deployed endpoint's enabled/disabled state (list_endpoints shows the current isEnabled). A disabled endpoint stops serving live traffic but keeps its configuration, so toggling it back on restores it. Powerful: requires confirm=true — first call WITHOUT confirm to preview, then again with confirm: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": {
"endpointId": "<endpointId>"
},
"name": "toggle_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to toggle. Omit/false returns a preview only. | |
| endpointId | Yes | The endpoint's id — from list_endpoints. |