Skip to main content
Glama

Delete layer template forever

purge_layer_template
DestructiveIdempotent

Permanently remove a soft-deleted layer template so it no longer appears in your template list; active templates are refused until deleted first.

Instructions

Permanently remove an already-deleted layer template (find it with list_deleted). Templates hold no media files; this only drops the row. A template that is not deleted is refused: call delete_layer_template first. Returns { ok, message }.

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

Input Schema

NameRequiredDescriptionDefault
templateIdYesLayer template id (list_layer_templates)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.51.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv0.26.3

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds real context beyond them: the blast radius is scoped ('Templates hold no media files; this only drops the row') and the refusal condition for non-deleted templates is disclosed. It even documents the response shape, which no output schema provides.

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 load: scope, side-effect footprint, precondition, and return value. The precondition is front-loaded immediately after the scope statement, with no filler.

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 no output schema, the definition covers the destructive footprint, the refusal behavior, the correct discovery tool, and the return shape. Nothing an agent needs before calling it is missing.

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 single templateId parameter is already documented, and the baseline would be 3. The description adds a small amount of meaning by naming list_deleted as the source of valid ids for this specific operation, though this sits in mild tension with the schema's hint of list_layer_templates, which does not surface deleted templates.

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 ('permanently remove') and resource ('layer template') plus the crucial qualifier 'already-deleted', which cleanly separates it from delete_layer_template and restore_layer_template. An agent knows exactly what operation this performs 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('already-deleted layer template'), how to locate the target ('find it with list_deleted'), and a hard precondition with the named alternative ('A template that is not deleted is refused: call delete_layer_template first'). Both the positive path and the refusal path route the agent to the right sibling.

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

Deploy Server

Other Tools