Skip to main content
Glama

clearly_canvas_delete

Destructive

Delete layers with their descendants, and/or workspace variables (by name). Requires delete authority and the canvasNodesRev you read; records a restore point. A stale revision deletes nothing. Works without an open editor or local CLI.

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": {
      "target": "<target>",
      "expectedRev": "<expectedRev>"
    },
    "name": "clearly_canvas_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoNode ids or unique layer names.
targetYesCanvas id, key or exact title.
variablesNoWorkspace variable names to delete, e.g. "space/md".
expectedRevYesOptional canvasNodesRev from the scene read; a stale revision refuses without applying changes.

Output Schema

NameRequiredDescriptionDefault
okYes
codeNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / target / description
      Previous value: -"Canvas id, key or exact title. Use the id returned by creation."New value: +"Canvas id, key or exact title."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the authorization requirement, that a restore point is recorded (so the delete is recoverable), that a stale revision is a silent no-op rather than a partial failure, and that no editor session or CLI is needed. Those are exactly the behavioral risks an agent needs before invoking a destructive, non-idempotent tool.

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?

Three short sentences, front-loaded with the action and scope, then prerequisites, then failure behavior. No filler; every clause carries operational 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 destructive tool with four parameters, annotations and an output schema already present, the description covers authority, revision requirement, recoverability, and failure mode. An agent has everything needed to call it safely without opening the 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 baseline is 3, but the description adds real meaning: 'ids' deletes descendants as well, variables are addressed by name, and 'expectedRev' is tied specifically to the canvasNodesRev from the scene read. The stale-revision refusal is repeated from the schema, which is why this is not a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: deleting layers with their descendants and/or workspace variables by name. The scope (layers vs variables, descendants included) is unusually precise. It does not, however, contrast itself with the nearby 'clearly_delete' or 'clearly_component_delete' siblings, so the agent must infer which delete tool targets what.

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?

Gives concrete preconditions for use: delete authority plus the canvasNodesRev obtained from a scene read, and notes it works without an open editor or local CLI. It does not explicitly state when to prefer a different delete sibling, but the required-context framing is clear enough to select it correctly.

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.