Skip to main content
Glama

delete_template

Delete a template. Fails if entries still reference it — delete those first

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

Input Schema

NameRequiredDescriptionDefault
idYes
envIdNoEnvironment the content lives in — defaults to the org's production environment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the key behavioral trait that referential integrity blocks the delete and causes failure. It does not say whether the delete is irreversible, what error surface the failure takes, whether permissions are required, or whether a successful repeat call is idempotent.

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 short sentences, zero filler, with the action front-loaded and the failure constraint immediately after. Every clause earns its place.

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 two-parameter delete with no output schema, the essential operational fact — the referential-integrity failure mode — is present, which is the most important thing an agent needs. It is only slightly thin on irreversibility and permission requirements, which are relevant for an unannotated destructive tool.

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 50%: envId is documented with its production default, while the required id has no schema description. The description does not add semantics for either parameter, relying on 'id' being self-evidently the template identifier and leaving envId entirely to the schema.

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 template') that unambiguously separates it from get_template, update_template, and create_template. It does not name an alternative deletion tool, but the resource is precise enough that no sibling confusion is plausible.

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?

Provides a concrete precondition for use: the call fails if entries still reference the template, and instructs the agent to delete those entries first. It stops short of naming the specific sibling (delete_entry / batch_delete_entries) to use, leaving the agent to infer the route.

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