Skip to main content
Glama
Scalekit MCP Server

Scalekit MCP Server

Official

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

NameRequiredDescriptionDefault
connectorYesConnector ID from search_connectors, for example GMAIL.
environmentIdYesScalekit environment id. Format: env_<id>.
connectionNameNoName your code and virtual MCP servers use for this connection. Letters, numbers and hyphens; unique in the environment.
providerDomainNoOnly for connectors whose server host depends on the account's region. Can only be set at creation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.3

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover the safety profile (non-read-only, non-destructive, non-idempotent); the description adds real operational context beyond them: caller OAuth token required, duplicate connection names rejected, and the scope restriction that only per-user connections are creatable here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The capability and the key constraint come first, followed by sibling routing and the duplicate-name rule — front-loaded and mostly waste-free. The per-user concept is restated twice ('for each user through their own connected account' and 'always per user'), a minor redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter creation tool with no output schema, the description covers prerequisites (OAuth token, connector ID), allowed scope, failure mode (duplicate name), and the follow-up tool for changes. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description still adds meaning: it ties 'connector' to IDs returned by search_connectors and flags the creation-time-only constraint on providerDomain, plus the name uniqueness rule. It does not explain environmentId beyond the schema's own format note.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Create one AgentKit connection for a connector') plus the agent-facing purpose (acting in the app per user via each user's connected account). This is clearly distinguishable from list/update siblings, which are named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing: use search_connectors to obtain the connector ID, list_agentkit_connections to inspect existing ones, and update_agentkit_connection afterwards for scopes or a custom OAuth client. It also states a hard exclusion — org-wide connections cannot be created via MCP and must be made in the Scalekit dashboard.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.