Skip to main content
Glama
pdf-mcp
by jkp

Rename PDF

rename_pdf

Rename a PDF file in the filing cabinet by providing its current filename and desired new filename.

Instructions

Rename a PDF file in the filing cabinet.

Args: old_filename: Current filename new_filename: New filename

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": {
      "old_filename": "<old_filename>",
      "new_filename": "<new_filename>"
    },
    "name": "rename_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_filenameYes
old_filenameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations supply only a title and destructiveHint=false, so the description carries most of the burden and does not meet it. It never says what happens if new_filename already exists (overwrite, error, or silent collision), whether the file must already be indexed, or whether the rename affects the search index that siblings like reindex_pdfs maintain.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and wastes nothing. The Args block is structurally tidy but is pure restatement of parameter names, so it consumes space without earning it.

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

Completeness2/5

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

An output schema exists, so return values need not be explained. However, for a state-changing rename operation with zero schema coverage and thin annotations, the definition omits collision handling, path/extension conventions, and any effect on indexing — the exact details an agent needs to call it safely.

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

Parameters2/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, and it does not: "old_filename: Current filename" and "new_filename: New filename" merely restate the parameter names. It leaves unresolved whether filenames include paths, the .pdf extension, or subdirectories within the filing cabinet.

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?

"Rename a PDF file in the filing cabinet" gives a specific verb (rename) plus resource (PDF file) and a scope (the filing cabinet), which cleanly separates it from read_pdf, list_pdfs, and search_pdfs. It stops short of explicitly naming a sibling or a boundary case, so it is clear but not maximally differentiated.

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 only implied: an agent can infer you call this when a file's name must change. There is no statement of when not to use it, no prerequisite checks (does the file need to exist, must the new name be unique), and no pointer to alternatives such as get_pdf_info for inspecting a file before renaming.

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