Skip to main content
Glama

sessions_rename

Assign a custom name to a Claude Code session by ID or 8-character prefix, or clear it to restore Claude's own title; named sessions can be found via query.

Instructions

Give one session your own name (id or 8-char prefix from sessions_list).

An empty title removes the name, so Claude's own title shows again. sessions_list(query=...) finds a session by this name.

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": {
      "id": "<id>",
      "title": "<title>"
    },
    "name": "sessions_rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
titleYes
all_projectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one genuinely non-obvious behavioral trait: an empty title removes the custom name so Claude's own title shows again. It says nothing about permissions, whether the rename is visible to other agents or reversible, or what happens when the id does not resolve, which leaves 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?

Three short sentences, each loading a distinct piece of information: what the action is, the clearing semantics of an empty title, and how to find a session by name. Front-loaded and free of filler.

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

Completeness3/5

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

For a three-parameter mutation with no annotations and no output schema, the description covers the essentials of purpose and the two required parameters, including the non-obvious empty-string behavior. It stops short of covering all_projects, error behavior for an unresolvable id, and whether the change is scoped or propagated, so it is adequate but not complete.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It adds strong meaning for id (full id or 8-char prefix, sourced from sessions_list) and title (empty string clears the name), but the third parameter all_projects is never mentioned and its effect on the lookup is left entirely undocumented.

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?

"Give one session your own name" states a specific verb-like action on a specific resource, and the parenthetical id/prefix hint makes the target unambiguous. It is clear what the tool does and how it differs from sessions_list, though it never uses the word "rename" to anchor it to the tool name.

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?

Offers concrete operational context: the id may be a full id or an 8-char prefix from sessions_list, and sessions_list(query=...) is named as the way to find a session by its current name. It does not explicitly say when to prefer this over other session tools or what preconditions must hold, but the guidance given is more than implied.

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