Skip to main content
Glama

Rename a connection

stack_rename_connection

Rename one service connection (scon_*). A service can hold several connections, each with its own name; the name is what an agent passes as connection to choose among them. The new name is compared without case and must not be used by another active connection of the same service for the same member. The owner or an admin; an agent cannot. Returns the connection.

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": {
      "connection_id": "<connection_id>",
      "connection_name": "<connection_name>"
    },
    "name": "stack_rename_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
connection_idYesService connection id (scon_*) from stack_list_connected_services
connection_nameYesThe new name: letters, digits, spaces and hyphens, up to 40 characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, openWorld=false; the description adds substantial behavior beyond them: authorization requirements, an explicit uniqueness rule, and case-insensitive comparison of the new name. It stops short of saying what error surfaces on a name collision or what the returned connection looks like, but the mutation's consequences are clear.

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?

Five compact sentences, front-loaded with the action and object, with constraints following in priority order. The clipped style ("The owner or an admin; an agent cannot.") is dense but readable and nothing is padding.

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?

Covers the fields, their provenance, the authorization model, the uniqueness constraint, and a brief return statement despite there being no output schema. For a two-parameter rename mutation it is nearly complete; only failure behavior on conflicts and whether it is idempotent are left unstated.

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 both parameters are already documented with patterns and source for the id. The description still adds real meaning beyond the schema: the case-insensitive comparison rule for the new name and scope of uniqueness (another active connection of the same service for the same member), which no schema field conveys.

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?

Specific verb plus resource ("Rename one service connection (scon_*)") with the id prefix spelled out, and it goes on to explain what a connection is and that names distinguish several connections within one service. An agent knows exactly which object it is mutating and which field is being assigned.

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

Usage Guidelines3/5

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

It gives the decision-relevant context (name is what an agent passes as `connection` to select among connections) and the precondition (owner or admin; an agent cannot), which effectively steers callers away if unauthorized. However, it never states when to rename versus using an alternative such as stack_set_connection_proxy, nor any exclusion conditions — usage is implied rather than taught.

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.