Skip to main content
Glama

Rename or move a file

rename_file
Destructive

Renames or moves a file within the project (e.g. intro.tex to sections/intro.tex). References to it in other files are not updated.

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": {
      "project_id": "<project_id>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "rename_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
project_idYesThe project's id, from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds a genuinely non-obvious warning that references in other files are not updated, which prevents broken includes. It omits overwrite/conflict behavior when the destination already exists and whether intermediate directories are created, which matters for a destructive 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?

Two sentences, zero filler, with the core action and the example front-loaded and the caveat placed last where it reads as a warning. Nothing could be removed without losing information.

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 destructive mutation with no output schema, the description covers the action and one important side effect but leaves destination-exists handling, directory creation, and failure behavior unstated. Adequate but with visible gaps.

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 coverage is only 33% (only project_id is documented), so the description must carry more weight. The example clarifies that from/to are project-relative paths and that 'to' may contain a directory component, which is real added meaning, but leading-slash conventions, whether directories are auto-created, and whether 'to' is a directory or filename are unspecified.

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?

Specific verb set ('renames or moves') plus resource ('a file within the project'), and the inline example (intro.tex to sections/intro.tex) makes it unambiguous that 'move' means a path change. It does not explicitly distinguish itself from write_file or edit_file, so it stops short of a 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?

Usage is implied by the verb and clarified by the example, but there is no explicit when-to-use versus when-not, and no sibling (e.g. write_file for content-preserving rewrites) is named as an alternative. The agent must infer that this is the tool for pure path changes.

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