Skip to main content
Glama

Delete elements from the board

delete_elements
Destructive

Delete elements from a canvas. Requires room_id from a previous Canvs tool result. Pass ids array of element IDs to delete.

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": {
      "room_id": "<room_id>",
      "ids": "<ids>"
    },
    "name": "delete_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesArray of element IDs to delete
room_idYesRoom ID from a previous Canvs tool result. If you only have a URL, extract it from https://canvs.io/app/?room=[room_id] or https://canvs.io/app/?gdrive=[room_id].

Output Schema

NameRequiredDescriptionDefault
urlYesCanvas room URL
isNewYesWhether a new canvas was created
room_idNoCanvas room ID
appStateYesCanvas app state (viewBackgroundColor, etc.)
elementsYesAll elements currently on the canvas
collabUrlYesCollaboration server URL for Socket.IO

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / room_id / description
      Previous value: -"Room ID from a previous Canvs tool result. If you only have a URL, extract it from https://[host]/?room=[room_id] or https://[host]/gdrive?id=[room_id]."New value: +"Room ID from a previous Canvs tool result. If you only have a URL, extract it from https://canvs.io/app/?room=[room_id] or https://canvs.io/app/?gdrive=[room_id]."
  2. Changed4 schema fields changed
    • addedInput schema / properties / room_id
      Added value: +{
      +  "description": "Room ID from a previous Canvs tool result. If you only have a URL, extract it from https://[host]/?room=[room_id] or https://[host]/gdrive?id=[room_id].",
      +  "type": "string"
      +}
    • removedInput schema / properties / room_url
      Removed value: -{
      -  "description": "Canvas URL from create_canvas (e.g. https://canvs.io/?room=XXXX) or a Google Drive board URL (e.g. https://canvs.io/gdrive?id=FILE_ID)",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "room_url",
      -  "ids"
      -]New value: +[
      +  "room_id",
      +  "ids"
      +]
    • addedOutput schema / properties / room_id
      Added value: +{
      +  "description": "Canvas room ID",
      +  "type": "string"
      +}
  3. Changed7 schema fields changed
    • addedOutput schema / properties / appState / additionalProperties
      Added value: +true
    • changedOutput schema / properties / appState / description
      Previous value: -"Current app state (viewBackgroundColor, etc.)"New value: +"Canvas app state (viewBackgroundColor, etc.)"
    • addedOutput schema / properties / appState / properties
      Added value: +{
      +  "viewBackgroundColor": {
      +    "type": "string"
      +  }
      +}
    • changedOutput schema / properties / elements / description
      Previous value: -"Current scene elements for inline SVG rendering"New value: +"All elements currently on the canvas"
    • addedOutput schema / properties / elements / items
      Added value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
    • removedOutput schema / properties / pendingMermaid
      Removed value: -{
      -  "description": "Mermaid definition to be rendered client-side",
      -  "type": "object"
      -}
    • addedOutput schema / required
      Added value: +[
      +  "url",
      +  "isNew",
      +  "collabUrl",
      +  "elements",
      +  "appState"
      +]
  4. Changed5 schema fields changed
    • changedInput schema / properties / room_url / description
      Previous value: -"Room URL (from create_canvas) or room ID to operate on"New value: +"Canvas URL from create_canvas (e.g. https://canvs.io/?room=XXXX) or a Google Drive board URL (e.g. https://canvs.io/gdrive?id=FILE_ID)"
    • addedOutput schema / properties / appState
      Added value: +{
      +  "description": "Current app state (viewBackgroundColor, etc.)",
      +  "type": "object"
      +}
    • addedOutput schema / properties / collabUrl
      Added value: +{
      +  "description": "Collaboration server URL for Socket.IO",
      +  "type": "string"
      +}
    • addedOutput schema / properties / elements
      Added value: +{
      +  "description": "Current scene elements for inline SVG rendering",
      +  "type": "array"
      +}
    • addedOutput schema / properties / pendingMermaid
      Added value: +{
      +  "description": "Mermaid definition to be rendered client-side",
      +  "type": "object"
      +}
  5. First observed

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, readOnlyHint=false, and openWorldHint=false, so the safety profile is covered structurally. The description adds the room_id provenance requirement but says nothing about permanence/irreversibility, error behavior for invalid IDs, or batch limits — context worth having for a destructive tool.

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?

Three short sentences with the core action front-loaded and the prerequisite second; nothing is padded. Minor redundancy with the schema's own parameter descriptions keeps it from a 5.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and annotations cover the destructive safety profile. Still, for a permanent-deletion tool the description omits whether deletion is irreversible and how IDs should be sourced, leaving a modest gap for the agent's decision to call it.

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 description coverage is 100%, so both parameters are already fully documented, including the URL-extraction hint for room_id. The description only restates 'ids array of element IDs to delete', adding no format, cardinality, or validation semantics beyond the schema.

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?

The description names a specific verb and resource ('Delete elements from a canvas'), which is enough to distinguish it from siblings like add_elements and update_elements. It stops short of explicitly naming those siblings or contrasting scope, so it lands at clear-but-not-differentiating.

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

Usage Guidelines3/5

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

It states a real prerequisite ('Requires room_id from a previous Canvs tool result') and the required input, which is useful operational guidance. However, it never says when to choose this over update_elements or how to obtain element IDs (presumably via query_elements), so usage context is only implied.

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.

Resources