Skip to main content
Glama

Delete Template

delete_template
DestructiveIdempotent

Permanently deletes a stored template using its Template ID (all versions) or Version ID (one version); confirm before use because deletion cannot be undone.

Instructions

Delete a stored template now: a Template ID removes every version, a Version ID only that one. Confirm with the user first: it cannot be undone. To schedule a deletion instead, use update_template_metadata with expireAt.

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": {
      "templateId": "<templateId>"
    },
    "name": "delete_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateIdYesTemplate ID (every version) or Version ID (that version only), from list_templates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.1
    • addedInput schema / properties / templateId / maxLength
      Added value: +256
  2. Changed1 schema field changedv2.2.0
    • changedInput schema / properties / templateId / description
      Previous value: -"Template ID (64-bit) or Version ID (SHA-256) to delete. Template ID — deletes the template record and all its versions. Version ID — deletes only that specific version, leaving other versions intact. Both formats are returned by upload_template and list_templates."New value: +"Template ID (every version) or Version ID (that version only), from list_templates."
  3. Changed1 schema field changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. First observedv1.1.2

TDQS

A4.5/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 partly covered. The description still earns credit for the user-confirmation requirement and for spelling out the blast radius of each ID type, which annotations cannot express. "It cannot be undone" partly restates destructiveHint, which keeps it from a 5.

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?

Two sentences, front-loaded with the action and scope, followed by the safety precondition and the alternative. No filler and nothing buried.

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 single-parameter destructive tool with strong annotations, the description covers scope, irreversibility, confirmation workflow, and a redirect to the non-destructive path. There is no output schema to explain, and nothing an agent needs to call this correctly is missing.

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% and the schema property already explains the Template ID / Version ID dual role. The description restates that meaning without adding format, sourcing, or validation detail beyond what the structured field provides, so the baseline applies.

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?

"Delete a stored template now" gives a specific verb and resource, then immediately disambiguates the two ID modes: a Template ID removes every version, a Version ID only that one. An agent can distinguish this from siblings like update_template_metadata or inspect_template 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?

The description states when to use it (immediate deletion), a required precondition (confirm with the user first), and names the explicit alternative for a different need (update_template_metadata with expireAt for scheduled deletion). That is the full when/when-not/alternative triad.

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