Disconnect a service
disconnect_serviceDisconnects a service from a project, once the person confirms it: in your own prompt where you can show one, otherwise on a CodeGene page this call returns as a link. Anything in the project that uses the service stops working until it is connected again. Owners and admins only. If your prompt or page never appears and the call times out, call it again with finish_with set to "link".
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": {
"project_id": "<project_id>",
"connection_id": "<connection_id>"
},
"name": "disconnect_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project (list_projects gives ids). | |
| finish_with | No | Leave out. "link" returns a CodeGene page link for the person to open instead of showing a prompt or opening the page for them, for an assistant that cannot. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| connection_id | Yes | The connection (list_connections gives ids). |