Skip to main content
Glama

delete_tag

Destructive

Remove a tag and its nested children from every note in a vault, with a dry run by default so you can preview affected notes before deletion.

Instructions

Remove a tag (and its nested children unless exact:true) from every note in the vault. 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": {
      "tag": "<tag>"
    },
    "name": "delete_tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagYes
exactNo
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

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnly=false, and openWorld=false, so the safety profile is partly covered. The description adds genuinely new behavioral detail beyond that: the operation is vault-wide, it cascades to nested child tags unless exact:true, and dry_run defaults to true — the last point being a materially useful guardrail 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 short sentences with zero filler, and the high-impact facts — vault-wide scope, cascade behavior, dry_run default — are all front-loaded. 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.

Completeness3/5

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

This is a destructive, vault-wide bulk mutation with no output schema and only 25% parameter documentation. The description covers scope and the dry-run safety valve but leaves open what a dry run actually returns (a list of affected notes?) and what happens when the tag does not exist anywhere.

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 25% (only `vault` is documented), so the description carries real weight here — and it does explain `exact` (controls whether nested children are also removed) and `dry_run` (default true). However, it says nothing about the format of the required `tag` argument (bare name vs. '#tag' vs. path), which is the single most important parameter for calling this correctly.

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?

The description states a specific verb and resource ("Remove a tag") and adds crucial scope: "from every note in the vault." That vault-wide scope meaningfully separates it from a per-note tag edit, though it never names or contrasts a sibling like rename_tag or add_tags 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 rather than stated: the note that dry_run defaults to true hints at a preview-then-commit workflow, and "unless exact:true" signals when the nested-child behavior changes. There is no explicit when-to-use guidance and no statement of alternatives or prerequisites.

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