Skip to main content
Glama

Delete a custom template

delete_template
Destructive

Deletes a custom template by ID using its current revision, without affecting existing drafts or publications. Built-in templates cannot be deleted.

Instructions

Delete a custom template only when requested, using its current revision. Does not change previously created drafts or publications. Built-ins cannot be deleted.

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

Input Schema

NameRequiredDescriptionDefault
templateIdYes
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered; the description adds real value by stating what is NOT affected (existing drafts or publications) and which objects are protected (built-ins). It does not discuss whether deletion is recoverable or what happens on a revision mismatch, which is the main remaining behavioral gap.

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?

Three short sentences, front-loaded with the action and its constraint. No redundant restatement of the title or annotations.

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?

An output schema exists, so return values need not be described, and annotations cover destructiveness. The description covers scope of effect and deletion guards; only the stale-revision behavior and recoverability are left unspecified for a two-parameter mutation.

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 0%, so the description must carry parameter meaning. 'Using its current revision' gives conceptual meaning to expectedRevision (an optimistic-concurrency token), but neither parameter is explained concretely and no failure mode for a mismatched revision is given.

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 a custom template') and scopes it to custom templates only by excluding built-ins. An agent can distinguish it from get_template, list_templates, and save_template without opening a schema, though no sibling is named explicitly.

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?

'Only when requested' is a genuine when-to-use constraint that prevents proactive deletion, and 'using its current revision' implies fetching the template first to obtain that revision. There are no deletion alternatives to route to, but no explicit guidance on what to do if the revision is stale.

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