Skip to main content
Glama
Scalekit MCP Server

Scalekit MCP Server

Official

update_agentkit_connection

Idempotent

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

NameRequiredDescriptionDefault
scopesNoOAuth scopes. Replaces the stored list; send [] to clear it.
clientIdNoYour own OAuth client ID.
pkceEnabledNoTurn PKCE on or off for the authorization flow.
clientSecretNoYour own OAuth client secret. Never returned.
connectionIdYesConnection ID (conn_...). The name is not accepted here; use get_agentkit_connection to find the ID.
environmentIdYesScalekit environment id. Format: env_<id>.
connectionNameNoNew name. Code that uses the old name must switch to the new one.
useScalekitCredsNoUse Scalekit-managed OAuth credentials. Sending clientId or clientSecret turns this off unless it is also sent.
extraAuthorizeParamsNoExtra query parameters for the authorize URL. Replaces the stored map; send {} to clear it.
providerConfigurationsNoConnector-specific settings, for example {"slack_connection_type": "BOT"} or {"microsoft_tenant_id": "..."}. provider_domain cannot be changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.3

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations by disclosing a real side effect — sending clientId or clientSecret silently turns off Scalekit-managed credentials unless useScalekitCreds is also sent — plus the auth prerequisite ("Requires the caller OAuth token") and the scope limit that auth mode is untouched. The patch semantics also corroborate the idempotentHint=true annotation rather than contradicting it.

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

Conciseness5/5

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

Five short sentences, front-loaded with the action and followed by patch semantics, the read-path pointer, the credential side effect, and the auth requirement. Nothing is redundant with the title or repeated across sentences.

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

Completeness4/5

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

For a 10-parameter mutation with nested objects and no output schema, the description covers the operation semantics, prerequisites, and the most dangerous side effect. The only gap is that it never hints at what a successful call returns (the updated connection object), which an agent may want to confirm before chaining calls.

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; the description still earns credit by explaining the cross-parameter interaction between clientId/clientSecret and useScalekitCreds that the schema only states one-sidedly. It does not restate per-field replacement rules (scopes, extraAuthorizeParams), but those are already well documented in the schema.

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 ("Change settings") on a specific resource ("one AgentKit connection") and enumerates the mutable fields (scopes, client ID/secret, name). It also distinguishes itself from the read path by pointing to get_agentkit_connection, so an agent can tell update apart from get/create without opening a schema.

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

Usage Guidelines4/5

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

Gives clear operating context: "Send only what should change; everything else keeps its stored value" and "Use get_agentkit_connection to read the current settings and find the connection ID." It also carves out an exclusion ("does not change the auth mode"), though it does not say when to prefer create_agentkit_connection or enable_environment_connection over this tool.

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