Skip to main content
Glama

rename_tag

Destructive

Rename a tag across an Obsidian vault in frontmatter and inline text, including nested child tags; merges into an existing tag and defaults to dry-run for safe review.

Instructions

Rename a tag across the whole vault, in frontmatter and inline, including nested children (#old/x → #new/x). Renaming onto an existing tag merges them. dry_run defaults to true.

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

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
dry_runNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false; the description adds real value on top by disclosing the blast radius (frontmatter and inline, nested children renamed too), the collision semantics (merge into existing tag), and the safety default of dry_run=true. It does not say whether the operation is reversible, whether a dry run returns a preview list, or what permissions/limits apply.

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?

Three short sentences, front-loaded with scope, then merge behavior, then the dry_run default. Every clause carries information an agent needs and nothing is repeated from the schema or annotations.

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?

For a destructive mutation with four params, no output schema, and thin schema descriptions, the definition covers what changes, collision behavior, and the default safety mode. Gaps remain around return value (does dry_run list affected notes?) and exact input format for from/to, which the agent would have to guess.

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 only 25% (only vault is documented), so the description must compensate and largely does: it establishes that from/to are tags, that the # prefix format applies, that paths are rewritten for nested children, and that dry_run defaults to true. The vault param still defers to list_vaults via the schema, and nothing states whether from/to require the leading '#'.

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?

Specific verb (rename) plus resource (tag) plus explicit scope: whole vault, frontmatter and inline, nested children, with a concrete format example (#old/x → #new/x). An agent can immediately separate this from delete_tag, add_tags, or rename_property without opening any schema.

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

Usage Guidelines4/5

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

The description makes the use case clear (whole-vault tag renaming including nested tags) and adds a key decision rule: renaming onto an existing tag merges them, and dry_run defaults to true so a preview is the default path. It never names an explicit alternative or when-not condition (e.g., use rename_property for frontmatter keys, or batch_replace for arbitrary text), so it stops short of full routing guidance.

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