Skip to main content
Glama

deleteTemplate

Destructive

Delete a contract template so no new contract can be created from it. Deleting is permanent and cannot be undone; contracts already created from it keep their documents. Returns the template as it was before the delete. Get templateId from getTemplates. Never invent UUIDs; only use values from prior tool responses.

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": "deleteTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateIdYesThe id of the template.

Output Schema

NameRequiredDescriptionDefault
templateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, it discloses that the deletion is permanent and irreversible, that contracts already created from the template survive with their documents, and what the response contains (the template as it was before deletion). These are exactly the facts an agent needs before invoking an irreversible mutation.

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?

Five short clauses, no redundancy, and the ordering is well front-loaded: what it does, the destructive consequence, the effect on existing contracts, the return value, then the ID sourcing rule.

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 full schema coverage and an output schema, nothing material is missing: safety semantics, ID provenance, and side effects on related contracts are all covered, and return value detail can be delegated to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already defines templateId as a UUID, giving a baseline of 3. The description adds genuine meaning by specifying where valid values originate (getTemplates) and prohibiting invented UUIDs, which the schema cannot express.

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?

The description states a specific verb and resource ("Delete a contract template") plus the concrete consequence ("so no new contract can be created from it"), which distinguishes it from sibling deletes like deleteContract and from non-destructive siblings like duplicateTemplate and updateTemplate.

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?

It explicitly tells the agent where the required identifier comes from ("Get templateId from getTemplates") and warns against fabricating UUIDs. It gives clear context for when to call but does not explicitly name a non-destructive alternative (e.g., updateTemplate) for agents that only want to retire a template.

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