Skip to main content
Glama

clear_canvas

Remove all elements from a canvas file to create a blank slate before adding new elements or redesigning the drawing from scratch.

Instructions

Remove ALL elements from a canvas file, giving you a blank slate. Use this before add_canvas_elements when you want to redraw or redesign from scratch.

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": {
      "workspace": "<workspace>",
      "canvasPath": "<canvasPath>"
    },
    "name": "clear_canvas"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceYesWorkspace path or name
canvasPathYesCanvas file path relative to workspace (e.g., "documents/my-drawing.canvas.md")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does convey that this is a wholesale destructive operation ('Remove ALL elements', 'blank slate'), but it never says whether the removal is reversible, whether it deletes the file or only its contents, or whether confirmation is needed — all material for a destructive call.

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?

Two tight sentences: the destructive scope is front-loaded and the pairing guidance follows immediately. Nothing is redundant or padded.

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 tool with a fully documented schema and no output schema, the description covers purpose, blast radius, and sequencing with add_canvas_elements. The remaining gap is safety context — reversibility and file-vs-content deletion — which matters given the absence of annotations.

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%, with both workspace and canvasPath documented including an example path format. The description adds no additional parameter meaning (e.g., path resolution rules or workspace matching), so the baseline 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 ('Remove ALL elements from a canvas file') and pins the scope with 'ALL' plus the resulting state ('blank slate'). This is clearly distinguishable from siblings like add_canvas_elements, read_canvas, and delete_content.

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 says when to reach for it: before add_canvas_elements when redrawing or redesigning from scratch. It does not state when NOT to use it (e.g., targeted removal via delete_content or partial edits), so the routing guidance is good but not exhaustive.

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