Skip to main content
Glama

Rename Agent

agent_rename

Assign a unique name to a detected agent or clear its custom name when the clear flag is true or the name is omitted.

Instructions

Assign a unique name to a detected agent, or clear its name when 'clear' is true or 'name' is omitted.

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": {
      "target": "<target>"
    },
    "name": "agent_rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew unique agent name matching [a-z][a-z0-9_-]{0,31}.
clearNoSet true to clear the agent's custom name.
targetYesCurrent agent name or hosting pane ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare it a non-read-only, non-destructive, non-idempotent mutation, and the description adds the useful detail that omitting 'name' also clears the custom name. However, it says nothing about collision handling for non-unique names, whether failures surface as errors, or why the operation is flagged non-idempotent — meaningful gaps for a mutation tool.

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?

A single front-loaded sentence covering both the primary action and the clearing case, with zero filler or restated title text.

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 three-parameter, fully documented, annotation-covered tool with no output schema, the description covers the essential semantics. It is only incomplete on error behavior for duplicate names, which an agent would want before retrying a failed rename.

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 adds real meaning beyond the schema: the name must be unique, and the name/clear interaction (omission implies clearing) is only stated here. The target parameter's dual nature (current name or pane ID) is left to the schema.

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

Purpose4/5

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

Names a specific verb (assign/clear) and resource (agent name) and scopes the target to a 'detected agent', which separates it from pane_rename, tab_rename, and workspace_rename without naming them. It stops short of an explicit sibling callout, so it lands at 4 rather than 5.

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?

The description states the clearing condition ('clear' is true or 'name' is omitted) but gives no guidance on when to use this versus pane_rename/tab_rename, nor what preconditions exist (agent must be detected/running). Usage is implied rather than directed.

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