Skip to main content
Glama

Rename Tag

rename_tag
Destructive

Rename a tag across the entire vault, updating inline #tags and frontmatter tags: fields. Supports hierarchical renaming of nested sub-tags and a dry run to preview changes.

Instructions

Rename a tag everywhere it appears across the vault, in both inline #tags and frontmatter tags: fields. With hierarchical: true (default), nested tags also rebase: renaming project to client also renames project/alphaclient/alpha. With dryRun: true, returns the planned counts without writing. Strip the leading # from oldName/newName — they're tag names, not tag tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
oldNameYesExisting tag name (without leading #), e.g. 'project'.
newNameYesNew tag name (without leading #), e.g. 'client'.
hierarchicalNoAlso rename nested sub-tags (default: true).
dryRunNoIf true, count matches without modifying any notes.
Behavior4/5

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

Annotations flag destructiveHint=true; description confirms destructive rename and adds details about nested tag rebasing and dry-run safety. No contradiction, and description adds value beyond annotations.

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?

The description is concise with three sentences, front-loaded with the core action, and each sentence adds essential detail without redundancy.

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?

Given no output schema, the description covers rename behavior, hierarchical, dryRun, and formatting. It lacks explicit mention of the return format for non-dry-run, but overall complete enough for a rename tool.

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%; description reinforces and clarifies parameter usage (e.g., stripping #, hierarchical behavior). It adds context like dryRun returns counts, which is beyond schema descriptions.

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?

The description clearly states the tool renames a tag everywhere in the vault, including inline and frontmatter. It uses a specific verb and resource, and distinguishes itself from sibling tools like 'get_tags' or 'search_by_tag'.

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 explains when to use 'hierarchical' and 'dryRun' options, and provides formatting guidance (strip leading #). However, it does not compare with alternative tools like 'replace_in_note' or 'update_frontmatter'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rps321321/obsidian-mcp-pro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server