Skip to main content
Glama

Rename a document or tab

rename_document

Rename a document, or (with tabId) one of its tabs. Non-destructive; returns the updated name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe new name. Keep it short: at most 60 characters. A longer name is shortened at a word boundary with an ellipsis.
tabIdNoRename this tab within the document instead of the document itself.
documentIdYesThe document to rename (from find_documents / read_document).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoThe renamed document id (document renames).
urlNoLink that opens the document (document renames).
nameYesThe stored name (shortened if it was over the cap).
tabIdNoThe renamed tab id (tab renames).
renamedYesWhether the document or one of its tabs was renamed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so 'Non-destructive' largely restates structured data, and 'returns the updated name' is redundant because an output schema exists. It does confirm the narrow scope of the mutation (a rename, not a content overwrite), but adds little beyond the annotations.

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?

Two compact sentences with the primary action first and the conditional mode immediately after; every clause carries information and nothing is padded.

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?

With an output schema, full parameter coverage and annotations covering safety, the description needs only to establish purpose and the two modes, which it does. Minor omissions (no guidance on renaming vs. general updates, no note on permission needs) keep it short of perfect.

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 100%, so documentId, name and tabId are fully documented in the schema, and the 60-character/ellipsis truncation rule lives there too. The description only echoes the tabId branch, adding no format or constraint detail beyond the schema, so the baseline 3 applies.

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 and resource ('Rename a document') plus the conditional variant ('with tabId, one of its tabs'), which is enough to distinguish it from sibling rename_diagram and from update_document. The two operating modes are declared up front 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 Guidelines3/5

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

The parenthetical '(with tabId)' tells the agent which parameter selects the tab-renaming mode, which is genuine conditional guidance. However, it never states when to prefer rename_document over update_document, nor any prerequisites or exclusions, so usage remains implied rather than explicit.

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