Skip to main content
Glama

delete-diagram

Move a Lucid document to the trash by ID, removing the entire diagram rather than individual shapes. Use it for cleanup or create-new-then-trash-old workflows.

Instructions

Delete a Lucid document by moving it to the trash. This removes the ENTIRE document (there is no shape-level delete or in-place edit in the API). Useful for cleanup or the create-new-then-trash-old pattern.

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": {
      "documentId": "<documentId>"
    },
    "name": "delete-diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentIdYesThe ID of the Lucid document to delete (move to trash). Can be extracted from URLs like https://lucid.app/lucidchart/{id}/edit. This trashes the WHOLE document, not individual shapes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the key traits: this is a soft delete into trash rather than a hard purge, and it affects the whole document with no partial/selective variant. It stops short of saying whether a trashed document can be restored, whether deletion is idempotent, or what happens when the ID is unknown.

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, each carrying distinct information: action, scope/limitation, and use case. The destructive scope is front-loaded and nothing is padded or repeated from the schema.

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 single-parameter tool with no output schema, the definition covers what matters most: that deletion is document-wide and trash-based. The remaining gap is post-call behavior (confirmation, error on missing/invalid ID, restore path), which an agent would need to reason about consequences.

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% and the single documentId parameter is already fully documented in the schema, including the URL-extraction hint and the whole-document warning. The description adds no parameter-level meaning beyond that, so the baseline of 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?

The description names a specific verb and resource ('Delete a Lucid document') and clarifies the mechanism ('by moving it to the trash') and the blast radius ('removes the ENTIRE document'). The parenthetical that no shape-level delete or in-place edit exists in the API preempts the most likely confusion with sibling tools like get-document or create-diagram.

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?

It gives concrete usage contexts ('cleanup or the create-new-then-trash-old pattern') and implicitly rules out shape-level removal. What it does not do is name an alternative for cases where the agent wants to modify rather than remove a document, nor state prerequisites such as ownership or trash permission.

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