Skip to main content
Glama

rename_file

Rename a note, file, or folder in place and automatically update links across the vault; keep the extension if omitted.

Instructions

Rename a note/file/folder in place (extension kept if omitted); links across the vault are 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": {
      "file": "<file>",
      "new_name": "<new_name>"
    },
    "name": "rename_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
new_nameYesNew name, e.g. "Better title"
update_linksNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The description adds real behavioral context beyond annotations: renaming rewrites links across the entire vault, a cross-file side effect the agent should know about, plus the extension-retention rule. However, it omits the crucial fact that this link updating is optional and controlled by update_links, presenting it as unconditional.

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?

A single dense sentence with the core action front-loaded and the link-update consequence appended; no wasted wording.

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 mutation tool with cross-vault side effects and no output schema, the description covers the main consequence but leaves the optional link-update parameter and any permission/error conditions unexplained.

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?

With 50% schema coverage the description partially compensates: it clarifies new_name handling ('extension kept if omitted') and the vault-wide scope. But update_links, a behavior-changing parameter, is undocumented in both schema and description, leaving a meaningful gap.

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 and resource with explicit scope: 'Rename a note/file/folder in place'. The phrase 'in place' implicitly separates it from move_file/copy_file, though no sibling 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 Guidelines3/5

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

Usage is implied by 'in place' (as opposed to moving or copying), but there is no explicit when-to-use or when-not-to-use guidance and no mention of prerequisites such as needing the vault open.

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

Deploy Server

Other Tools