Skip to main content
Glama
soil-dev

capsulemcp

delete_tag_definition

Destructive

Permanently remove a tag definition from an entity type's tag namespace, deleting it from all records. Use to clean up stray or test tags. Requires confirm=true.

Instructions

DESTRUCTIVE & TENANT-WIDE: permanently delete a tag DEFINITION from an entity type's tag namespace (parties / opportunities / projects). Unlike remove_tag_by_id — which detaches a tag from ONE record and leaves the definition intact for others — this removes the definition itself, so the tag disappears from EVERY record that shared it. Use it to clean up stray / mistyped / test tag definitions polluting the tenant-global list. Requires confirm=true. Always read the affected tag first via list_tags and confirm with the user; if you only want to untag one record, use remove_tag_by_id instead. Irreversible (re-creating by name via add_tag mints a brand-new id). Idempotent on retry: {deleted: true, alreadyDeleted: false, entity, tagId} on a fresh delete, or {deleted: true, alreadyDeleted: true, entity, tagId} if the definition was already gone (Capsule's 404 is caught). Endpoint verified empirically (DELETE //tags/{id} → 204).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagIdNoThe tag definition's id (from list_tags, or embed='tags' on a record). NOT an entity id.
entityYesWhich entity type.
confirmYesMust be set to true. DESTRUCTIVE & tenant-wide: permanently deletes the tag DEFINITION from this entity type's tag namespace, removing it from EVERY record that shares it — not just one. To detach a tag from a single record while keeping the definition, use remove_tag_by_id instead. Irreversible (the definition is gone; re-creating by name via add_tag mints a new id). Idempotent on retry.
Behavior5/5

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

Annotations already mark destructive=true. Description adds: irreversible, idempotent on retry, tenant-wide effect, response shape (deleted/alreadyDeleted), and endpoint verification (DELETE returns 204, 404 caught). Goes well 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?

Single dense paragraph, front-loaded with key constraints (DESTRUCTIVE & TENANT-WIDE). Every sentence earns its place: purpose, alternative, prerequisite, idempotency, response, endpoint. No wasted words.

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?

Covers every aspect needed for a destructive operation: what, when, prerequisites, irreversibility, idempotency, response, and endpoint behavior. No output schema, but description fully explains return values.

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%—all 3 params have descriptions. Description adds extra context: tagId 'NOT an entity id' and confirm's idempotent retry behavior. Baseline 3 elevated due to these clarifications, though the description doesn't document every param exhaustively beyond the schema.

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?

Starts with 'DESTRUCTIVE & TENANT-WIDE: permanently delete a tag DEFINITION'—a specific verb and resource. Explicitly distinguishes from sibling remove_tag_by_id by contrasting scope (definition vs. one record). Lists entity types (parties/opportunities/projects).

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?

Provides explicit when-to-use ('clean up stray/mistyped/test tag definitions'), when-not-to-use ('if you only want to untag one record, use remove_tag_by_id'), and a prerequisite ('Always read the affected tag first via list_tags and confirm with the user'). Also mandates confirm=true.

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/soil-dev/capsulemcp'

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