update_agentkit_connection
Update settings on an AgentKit connection—scopes, OAuth client ID and secret, name, PKCE, or provider options—by sending only the fields that need to change.
Instructions
Change settings on one AgentKit connection, such as its scopes, its own OAuth client ID and secret, or its name. Send only what should change; everything else keeps its stored value. Use get_agentkit_connection to read the current settings and find the connection ID. Sending a client ID or secret turns off Scalekit-managed credentials unless useScalekitCreds is also sent. This tool does not change the auth mode. Requires the caller OAuth token.
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": {
"environmentId": "<environmentId>",
"connectionId": "<connectionId>"
},
"name": "update_agentkit_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | No | OAuth scopes. Replaces the stored list; send [] to clear it. | |
| clientId | No | Your own OAuth client ID. | |
| pkceEnabled | No | Turn PKCE on or off for the authorization flow. | |
| clientSecret | No | Your own OAuth client secret. Never returned. | |
| connectionId | Yes | Connection ID (conn_...). The name is not accepted here; use get_agentkit_connection to find the ID. | |
| environmentId | Yes | Scalekit environment id. Format: env_<id>. | |
| connectionName | No | New name. Code that uses the old name must switch to the new one. | |
| useScalekitCreds | No | Use Scalekit-managed OAuth credentials. Sending clientId or clientSecret turns this off unless it is also sent. | |
| extraAuthorizeParams | No | Extra query parameters for the authorize URL. Replaces the stored map; send {} to clear it. | |
| providerConfigurations | No | Connector-specific settings, for example {"slack_connection_type": "BOT"} or {"microsoft_tenant_id": "..."}. provider_domain cannot be changed. |