Skip to main content
Glama

Delete layers

canvas-delete_nodes
Destructive

Delete nodes (and their subtrees) — one undoable action.

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": {
      "sessionId": "<sessionId>",
      "ids": "<ids>"
    },
    "name": "canvas-delete_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesNode ids
sessionIdYesThe artifact's id (its sessionId), from canvas-get_open or workspace-list_artifacts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered by structured data. The description still adds real value by disclosing cascading subtree deletion and that the whole operation is a single undoable step — two facts the annotations do not convey. It stops short of error behavior for missing ids or any confirmation requirements.

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?

A single clause, front-loaded with the verb and resource, with the two non-obvious facts (subtrees, single undo) attached. Nothing is wasted and nothing important is buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive tool with full schema coverage and clear annotations, the description supplies the cascade and undo semantics an agent most needs. Minor gaps remain around partial-failure behavior when some ids are invalid, but nothing critical 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 coverage is 100%, including the note that sessionId comes from canvas-get_open or workspace-list_artifacts, so the schema carries the parameter burden. The description adds only that the ids are node ids whose subtrees go with them; baseline 3 applies.

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 ('Delete nodes') plus an important scope detail — subtrees are removed too. That gives it a clear edge over name-only siblings like canvas-update_nodes and canvas-duplicate_nodes, though it never names a sibling to contrast with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance. It does not say how this differs from canvas-update_nodes, nor whether whole-artifact removal should go through artifact-delete instead. The agent must infer the selection rule from the tool names alone.

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.