Skip to main content
Glama

Delete a template variable

delete_template_variable
DestructiveIdempotent

Permanently delete a custom variable. A template that still uses {{name}} will publish it literally. Also needs the organization's "Allow deleting via remote MCP" setting, which only its OWNER can switch on (else 403 MCP_DELETE_DISABLED).

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": {
      "variableId": "<variableId>"
    },
    "name": "delete_template_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
variableIdYesThe variable's ID (from list_template_variables)
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.

Output Schema

NameRequiredDescriptionDefault
deletedNo
variableIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: it names the downstream effect on published templates and documents an authorization prerequisite (the org's 'Allow deleting via remote MCP' setting, OWNER-only) plus the exact failure mode 403 MCP_DELETE_DISABLED. That is precisely the kind of context annotations cannot carry.

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?

Three short sentences, no filler, with the destructive outcome front-loaded and the prerequisite following. The final sentence packs setting name, role requirement, and error code densely but each element is actionable.

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 two-parameter tool with an output schema (so return values need no explanation), the description covers consequence, permission gate, and error code. An agent has everything needed to call it correctly or warn the user beforehand.

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 description coverage is 100%, with both variableId and organizationId documented in-schema including their listing tools and the multi-org conditional. The description adds no parameter-level meaning beyond that, so the 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 — 'Permanently delete a custom variable' — and the word 'Permanently' clearly separates it from update_template_variable or create_template_variable. It stops short of naming a sibling alternative explicitly, but the operation is unambiguous.

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 real decision context: the consequence that a template still using {{name}} will publish the placeholder literally tells an agent when this call is risky and worth confirming first. It does not name an explicit alternative (e.g. update_template_variable to change the value instead), so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources