create_agentkit_connection
Creates a per-user AgentKit connection for a connector, enabling agents to act in an app through each user's own connected account. Use search_connectors first to find the connector ID.
Instructions
Create one AgentKit connection for a connector, so agents can act in that app for each user through their own connected account. Use search_connectors to find the connector ID and list_agentkit_connections to see connections that already exist. Use update_agentkit_connection afterwards to change scopes or set your own OAuth client. Connections created here are always per user: org-wide connections, where one shared account acts for every user, are not supported through MCP. Create those in the Scalekit dashboard. Requires the caller OAuth token. A duplicate connection name is rejected.
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>",
"connector": "<connector>"
},
"name": "create_agentkit_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connector | Yes | Connector ID from search_connectors, for example GMAIL. | |
| environmentId | Yes | Scalekit environment id. Format: env_<id>. | |
| connectionName | No | Name your code and virtual MCP servers use for this connection. Letters, numbers and hyphens; unique in the environment. | |
| providerDomain | No | Only for connectors whose server host depends on the account's region. Can only be set at creation. |