Skip to main content
Glama

Replace a connection's key

replace_connection_key
Destructive

Starts replacing one secret key of a connection (list_connections names them). The person pastes the new key on a CodeGene page this call opens for them or returns as a link, never in chat. Owners and admins only. If your prompt or page never appears and the call times out, call it again with finish_with set to "link".

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": {
      "project_id": "<project_id>",
      "connection_id": "<connection_id>",
      "key_name": "<key_name>"
    },
    "name": "replace_connection_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
key_nameYesThe key's name, as list_connections names it.
project_idYesThe project (list_projects gives ids).
finish_withNoLeave out. "link" returns a CodeGene page link for the person to open instead of showing a prompt or opening the page for them, for an assistant that cannot.
workspace_idNoWorkspace id from whoami; omit when there is one.
connection_idYesThe connection (list_connections gives ids).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond destructiveHint=true, the description discloses what the agent could not infer: the secret is entered by the person on an out-of-band page and never in chat, the call may block on a user-facing prompt and time out, and the remedy is a retry with finish_with. That is exactly the behavioral context annotations cannot carry.

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?

Three sentences, front-loaded with what happens, then the security constraint, then permissions and retry. The middle sentence ("The person pastes the new key on a CodeGene page this call opens for them or returns as a link, never in chat") is dense but earns its place. Minor tightening possible.

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 5-parameter mutation with no output schema, the description covers the flow, permissions, secret handling, failure mode, and remedy. It leaves open what the tool returns immediately and how completion is confirmed after the person pastes the key, which is the main remaining gap.

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 baseline is 3, but the description adds real meaning beyond the schema: it ties key_name to list_connections and explains finish_with="link" as a timeout/fallback remedy rather than just an accessibility option. It still does not explain workspace_id or project_id resolution beyond what the schema says.

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?

"Starts replacing one secret key of a connection" gives a specific verb, resource, and single-key scope, and the follow-on sentence explains the mechanism (a page the person pastes into, never in chat). An agent can distinguish this from list_connections (which only names keys) and from create_api_key/revoke_api_key without opening the 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?

It states the prerequisite ("Owners and admins only"), points to list_connections for valid key names, and gives an explicit recovery path for the timeout case (retry with finish_with="link"). It does not say when to prefer this over sibling key-management tools, but the context is otherwise clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources