Skip to main content
Glama

Remove Tag

remove_tag
DestructiveIdempotent

Archive or permanently delete a tag with a confirm/archive/cancel conflict step, and optionally strip it from all linked tasks and customers.

Instructions

Remove a tag by archiving (hides from active views, recoverable) or permanently deleting. On first call, returns a conflict with ARCHIVE / DELETE / CANCEL options. Pass mode after the user decides. If the tag is owned by a project, the tool suggests removing the project instead. On delete, pass clean_items=true to also strip the tag from all tasks and customers that use it.

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_id": "<tag_id>"
    },
    "name": "remove_tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDeprecated: use `resolution`. 'archive' / 'delete' / 'cancel'.
tag_idYesTag registry UUID to remove.
cascadeNoWhen deleting, also remove this tag from all tasks, customers, and financial records that use it. If false, the registry entry is deleted but items keep the tag text (orphaned).
resolutionNoResolution after the removal conflict: 'confirm' deletes (recoverable for 30 days), 'archive' hides it (recoverable), 'cancel' aborts.
clean_itemsNoDeprecated: use `cascade`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructive/idempotent annotations: archive hides from active views but is recoverable, delete strips the tag from all tasks and customers when clean_items=true, and owned tags trigger a project-removal suggestion. This is exactly the mutation-consequence context the annotations cannot express.

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?

Four tight sentences, front-loaded with what the tool does before the interaction flow. Slight ambiguity comes from switching between the description's option names and the schema's parameter names, but there is no filler.

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?

With no output schema, the description correctly describes the notable return case (the first-call conflict and its options), which is the key thing an agent cannot guess. What happens on a successful archive/delete is not stated, and the deprecated-vs-current parameter naming is left unresolved.

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?

The description does explain the intent of the resolution step, which the schema alone does not convey. However, it steers the agent to `mode` and `clean_items`, both of which the schema explicitly marks Deprecated in favor of `resolution` and `cascade`, and the ARCHIVE/DELETE/CANCEL wording does not match the `resolution` enum (confirm/archive/cancel). With 100% schema coverage the baseline is 3, and the stale naming keeps it there rather than raising it.

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?

Opens with a specific verb and resource ("Remove a tag") and immediately scopes it into the two removal variants (archive vs. permanent delete). An agent can distinguish this from siblings like rename_tag, create_tag, or list_tags 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 Guidelines5/5

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

Explicitly describes the two-step flow: first call returns a conflict with ARCHIVE/DELETE/CANCEL, and the mode is passed only after the user decides. It also states the escalation condition (project-owned tag → suggest removing the project) and when to use clean_items, which is real when-to guidance rather than inference.

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