Skip to main content
Glama

Delete Spec Template

delete_spec_template
Destructive

Delete a spec template by id (GUID) or name. Soft: it disappears from list_spec_templates and apply_spec_fill can no longer use it. Items already filled from it keep their values, and those fills can still be reversed; the preview counts them. Requires an operator (unpinned) credential and an Admin user.

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": {
      "template": "<template>"
    },
    "name": "delete_spec_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
templateYesThe template to delete: its id (GUID) or name.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
deletedNo
previewNo
templateNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false), the description discloses that this is a soft delete, exactly what disappears (listing and apply eligibility), and what is preserved (already-filled values, reversible fills). It also adds the credential/role requirement, which annotations do not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and its semantics are front-loaded in short, dense sentences with no filler. The trailing clause "the preview counts them" is slightly compressed and could be misread, a minor clarity cost in an otherwise tight statement.

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 destructive, credential-gated tool, the description covers consequences, preservation of downstream data, and authorization, while the schema fully documents the two-step write and an output schema exists for return values. Nothing an agent needs to call it 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%, so the preview/previewReceipt/idempotencyKey two-step flow is already fully documented in the schema. The description's "by id (GUID) or name" essentially restates the template parameter's schema text rather than adding new meaning, so the baseline of 3 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?

States a specific verb and resource ("Delete a spec template") plus the acceptable identifiers (id/GUID or name). It also distinguishes itself from the sibling template tools by describing the effects on list_spec_templates and apply_spec_fill, so an agent can tell what this tool does versus those.

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 clear preconditions for use (operator unpinned credential, Admin user) and explains the consequence of invoking it, which tells an agent when the call is appropriate. It does not, however, name an alternative path (e.g., an archive/deactivate sibling) or state when not to delete, so it stops short of explicit alternative 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