Skip to main content
Glama

delete_tag

DestructiveIdempotent

Delete a tag by its ID after confirming it is not assigned to any account resource. Use this to remove unused tags safely.

Instructions

Delete existing tag by id [DELETE /v1/tags/{tagId}] Your tag can be deleted if it is not assigned to any resource on your account. Check tag assigments before deleting tag.

Input Schema

NameRequiredDescriptionDefault
tagIdYesThe identifier of the tag
x-trace-idNoIdentifier to trace group of requests.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds the operationally important constraint that deletion fails when the tag is still assigned — genuine context beyond the structured fields, though it doesn't say what error behavior or side effects to expect.

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?

Two short sentences, with the endpoint and the blocking precondition front-loaded. Minor waste in repeating the title and a typo ('assigments'), but nothing padding or buried.

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?

For a simple two-parameter delete with no output schema, the definition covers what an agent needs: the target, the mutation, and the precondition that gates success. Only the exact failure mode when the tag is assigned is left implicit.

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 100% and tagId is documented as 'The identifier of the tag'. The description only restates 'by id', adding no format, range, or acquisition guidance beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource ('Delete existing tag by id') plus the underlying endpoint, so an agent can tell it apart from retrieve_tag, update_tag, and delete_assignment without opening the schema. It stops short of explicitly contrasting with the nearest sibling, delete_assignment.

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?

Gives a concrete precondition for use: the tag can only be deleted if it is not assigned to any resource, and it advises checking tag assignments first. It does not name the sibling tool (retrieve_assignment_list) that performs that check, leaving the agent to infer the next call.

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