Skip to main content
Glama

tags.remove

Remove one or more tag IDs from a single file without deleting the file or global tags. Idempotent; provide tag IDs from tags.list.

Instructions

Detach one or more tag IDs from ONE file. Destructive on the link only — does NOT delete the file or the global tag definition (orphan tags survive in tags.list). Idempotent: removing an already-absent tag is a no-op. No external auth or rate limits. Returns {success: true}. Note: takes tag IDs (integers), not names — fetch them via tags.list. To remove ALL tags from many files via a query, see tags.search (additive only) — there is no bulk-untag-by-query tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYesFile ID
tag_idsYesArray of tag IDs to remove

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.7.2

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals destructive scope ('on the link only'), idempotency, absence of external auth/rate limits, and the return value, providing unusually complete transparency for a mutation 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?

Every sentence earns its place: the core action is front-loaded, followed by destructive scope, idempotence, auth, return value, parameter reminder, and the alternative. Dense yet efficient with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

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

For a destructive-adjacent tool with no annotations and no output schema, the description is remarkably complete: it covers safety, reversibility, idempotence, return format, parameter sourcing, and alternative sibling behavior. An agent has everything needed to invoke it correctly.

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%, so baseline is 3. The description adds meaningful value by emphasizing that tag_ids are integers, not names, and that file_id refers to a single file, resolving common misinterpretations beyond the schema's minimal 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 states a specific verb ('Detach') and resource ('tag IDs from ONE file'), immediately clarifying the operation's scope and distinguishing it from destructive file/tag deletion. It also explicitly differentiates from siblings like tags.add and tags.search in a later sentence.

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?

The description gives explicit usage guidance: it clarifies that this tool removes tags from one file only, that IDs not names are required, and that bulk untagging by query is not available; it points to tags.search as the additive-only alternative. This leaves no ambiguity about when to choose this tool.

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