Skip to main content
Glama

Delete layer template

delete_layer_template
DestructiveIdempotent

Delete a layer template and clear it from project defaults while preserving layers on existing clips; restore it later if needed.

Instructions

Delete a template (it goes to Deleted) and drop it from your project defaults; clips that already got its layers keep them. Undo with restore_layer_template (list_deleted says how long it is kept). Returns { ok, clearedDefault } (it was your default and no longer is)

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_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.4/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 goes well beyond them: it discloses soft-delete semantics, that project defaults are cleared as a side effect, that existing clips retain their layers, and that retention is finite but queryable via list_deleted. It even documents the return payload ({ ok, clearedDefault }) and its meaning when the template was the caller's default.

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 verb and resource come first, then consequences, then recovery, then return value — a logical front-loaded order. The parenthetical chain ("(it goes to Deleted)", "(list_deleted says how long it is kept)", "(it was your default and no longer is)") is dense and slightly cluttered, but each aside carries real information.

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 soft-delete tool with no output schema, the definition covers the things an agent would otherwise have to guess: what happens to the entity, to project defaults, to dependent clips, how to reverse it, and what the response returns. No material gap remains for correct invocation or explanation of the outcome.

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?

There is a single parameter at 100% schema description coverage, and the schema already points at list_layer_templates for id discovery, so the baseline is 3. The description adds no further meaning about templateId (format, where to source it) and instead spends its words on side effects.

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?

Opens with a specific verb+resource ("Delete a template") and immediately qualifies it as a soft delete ("it goes to Deleted"), which distinguishes it from a hard-delete sibling like purge_layer_template without naming it. It also states the two collateral effects — removal from project defaults and model layers surviving on already-created clips — so an agent knows this is not a cascading destructive delete.

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?

Explicitly supplies the recovery path ("Undo with restore_layer_template") and where to check retention ("list_deleted says how long it is kept"), which tells the agent when this is the right call and what to do after a mistake. It stops short of an explicit when-not clause contrasting this with a permanent purge, so the agent must infer that distinction from "it goes to Deleted".

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