Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

delete_tag

DestructiveIdempotent

Permanently removes a tag definition from a CallRail account and strips it from all associated calls and form submissions; this hard delete cannot be undone.

Instructions

Delete a tag definition from the account. Removes it from any calls or form submissions that had it applied.

This is a HARD delete; the tag is gone permanently along with its historical applications. To preserve history, prefer renaming or disabling via update_tag instead.

Args: tag_id: Numeric tag ID. CallRail tag IDs are integers (NOT the string-prefixed format other entities use). Must match ^[0-9]+$ (string or numeric forms accepted). account_id: CallRail account ID. Auto-resolves if omitted.

Returns: JSON string {"deleted": True, "tag_id": ...} on success.

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": "delete_tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
tag_idYes
account_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.2
    • addedInput schema / properties / tag_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "integer"
      +  }
      +]
    • removedInput schema / properties / tag_id / type
      Removed value: -"string"
  2. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes further by specifying exactly what is destroyed (the definition plus its historical applications on calls and form submissions) and that it is unrecoverable. That is precisely the missing context an agent needs before an irreversible write.

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?

Front-loaded with the action and the destructive warning ahead of the argument docs, with no filler prose. The Args/Returns scaffolding is slightly more formal than needed for two parameters, but every line still carries information.

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?

Covers the failure modes an agent most needs for a destructive tool, and returns are spelled out despite a formal output schema existing, so the description is largely self-sufficient. It omits what happens when the tag ID does not exist or belongs to another account (error vs silent success), which is the one residual gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden and does so: `tag_id` is documented as an integer-valued ID in `^[0-9]+$` form, explicitly NOT the string-prefixed format used by other entities, with string or numeric input accepted. `account_id` is documented as optional with auto-resolution, which the bare schema default of null does not convey.

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?

States a specific verb and resource ("Delete a tag definition from the account") plus the side effect on linked entities ("Removes it from any calls or form submissions that had it applied"). It also names the sibling it differs from (`update_tag`), so an agent can separate hard-delete from soft-disable without opening a 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?

Explicit when-to-use versus when-not-to: this is a hard delete, and callers who need to preserve history are routed to `update_tag` for rename/disable. This is the rare definition that names both the alternative and the condition that selects it.

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