Disconnect an agent connector
disconnect_agent_connectorDisconnect a connector from a deployed agent: preview what will be removed, then confirm to revoke access, delete saved values, remove its tools, and stop dependent scheduled tasks.
Instructions
Disconnect a Connector from a deployed agent. Call it without confirm first: it shows the connection and what goes with it, and changes nothing. After the user agrees, call again with confirm: true. Its saved values, sign-in and account choices are removed, the service is asked to revoke a sign-in's access where it supports that, the agent loses the connector's tools, and scheduled tasks that can use no other connected connector stop running. A running agent gets most changes without a restart; a few restart it, which takes a minute or two. It cannot be undone: connecting again needs connect_agent_connector with a new sign-in or the values. The wiro connector saves no values: disconnecting it leaves the agent its Wiro project, and connecting it again takes a Wiro project. Chat channels such as Telegram are turned off by clearing their fields with set_agent_credentials instead.
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": {
"agent_guid": "<agent_guid>",
"connector": "<connector>"
},
"name": "disconnect_agent_connector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | false (default) only shows what would be removed. true disconnects. | |
| connector | Yes | The connector's slug, such as "google-ads". | |
| agent_guid | Yes | The deployed agent's guid, from list_my_agents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| message | Yes | ||
| restart | No | After a disconnect: live (the running agent dropped the connector with no restart), scheduled (it restarts without it), none (nothing to load, or the agent is not running) or failed. | |
| revoked | No | After a disconnect: whether the service confirmed it revoked the access. False when it does not support that or did not answer. | |
| agentGuid | Yes | ||
| connector | Yes | ||
| willClear | Yes | ||
| connection | No | The connection as it was before this call. | |
| nextAction | No | ||
| disconnected | Yes |