Skip to main content
Glama

Delete template

delete_template
DestructiveIdempotent

Permanently delete a caller-owned template by ID. This cannot be undone. Library rows cannot be deleted. Returns JSON { templateId, deleted: true }. Mirrors DELETE /api/v1/templates/:id.

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 — slug for library rows (e.g. 'invoice-classic') or UUID for user rows.

Output Schema

NameRequiredDescriptionDefault
deletedYesAlways true; a failed delete is a tool error.
templateIdYesTemplate ID: a slug for library templates, a UUID for your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "deleted": {
      +      "const": true,
      +      "description": "Always true; a failed delete is a tool error.",
      +      "type": "boolean"
      +    },
      +    "templateId": {
      +      "description": "Template ID: a slug for library templates, a UUID for your own.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "templateId",
      +    "deleted"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / templateId / description
      Added value: +"Template ID — slug for library rows (e.g. 'invoice-classic') or UUID for user rows."
  3. First observed

TDQS

A4.3/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 bar is lower; the description still adds the irreversibility warning, the ownership restriction, and the fact that library rows are off-limits. It also pins the return payload and the REST endpoint it mirrors, giving the agent operational context beyond the annotations.

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?

Four short sentences, each carrying distinct information, with the destructive nature and scope front-loaded. No filler or repetition of the title.

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 one-parameter destructive tool with an output schema and rich annotations, nothing needed to call it correctly is missing: risk, restrictions, ownership scope, and response shape are all covered.

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 coverage is 100% and the single parameter already documents the slug-vs-UUID distinction, so the schema does the heavy lifting. The description only restates 'by ID' without adding format or resolution detail, which is the expected baseline when schema coverage is complete.

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?

Names a specific verb and resource ('Permanently delete a ... template by ID') and narrows scope to caller-owned templates, which immediately separates it from update_template, get_template, and list_templates. An agent can identify the operation without opening the schema.

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?

States a concrete when-not condition: 'Library rows cannot be deleted', so an agent knows to reject that case. It stops short of naming an alternative tool for any adjacent need (e.g. update_template for modification), so it is clear but not fully routing.

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