Skip to main content
Glama

rename_node

Rename a file or folder in place by node ID or absolute path, keeping it in the same folder and returning the updated node.

Instructions

Rename one file or folder in place (it stays in the same folder), identified by node_id or absolute path. Fails with NAME_CONFLICT if a sibling already has the new name, and with NOT_FOUND for items in the trash. Returns the updated node. To put it in another folder use move_nodes; to rename many items, call this once per item. Requires files:write; pass idempotency_key to make retries safe.

Input Schema

NameRequiredDescriptionDefault
nameYesnew file or folder name
pathNoabsolute node path instead of node_id
node_idNonode UUID
idempotency_keyNostable retry key, maximum 128 bytes

Output Schema

NameRequiredDescriptionDefault
idYes
kindYes
mimeNo
nameYes
pathNo
sizeNo
sha256No
parent_idNo
updated_atYes
stats_staleNo
subtree_bytesNo
subtree_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the single destructiveHint=false annotation: it discloses the failure modes (NAME_CONFLICT for an existing sibling name, NOT_FOUND for trashed items), the required files:write permission, the retry-safety mechanism, and that the updated node is returned.

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?

Five short sentences, each carrying distinct information: purpose, error behavior, return value, alternatives, and prerequisites. The core purpose is front-loaded with no filler or repetition of the tool name.

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

Completeness5/5

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

An output schema exists, yet the description still notes that the updated node is returned, and it covers the mutation-specific concerns (permissions, conflict errors, retry safety) an agent needs before calling.

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; the description adds real meaning by establishing that node_id and absolute path are alternative identifiers and that idempotency_key exists for retry safety rather than ordinary calls. It does not, however, say what happens if both identifiers are supplied.

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 precise verb and resource (rename one file or folder), plus the key scoping fact that it is in-place and that the target is identified by node_id or absolute path. It is immediately distinguishable from move_nodes, which is named explicitly.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use move_nodes to relocate, call this once per item to rename many, and pass idempotency_key to make retries safe. Both the when-to-use and the when-to-use-something-else conditions are stated.

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