Skip to main content
Glama

Move a diagram to the trash

delete_diagram
DestructiveIdempotent

Moves a diagram to the trash at the person’s request; the person can restore it in Archboard. It cannot delete permanently, and it is meant only for a diagram the person asked to delete. It needs the delete permission (permission in list_workspaces / list_diagrams) and editor access. Returns trashed, diagramId, title, deletedAt and userMessage (a confirmation for the person, in their language).

Input Schema

NameRequiredDescriptionDefault
diagramIdYesDiagram id (from list_diagrams or create_diagram).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing reversibility ('the person can restore it'), the permission model (delete permission plus editor access, and where to find those permissions), and the exact return payload including a localized userMessage. For a destructiveHint=true mutation, this is exactly the context an agent needs.

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 sentences ordered as purpose, constraints/permissions, then returns — front-loaded with zero filler. Every clause carries a distinct, actionable fact.

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?

No output schema exists, so the description explicitly enumerates the return fields, and it also covers reversibility and authorization prerequisites. An agent has everything needed to decide and call correctly.

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?

Only one parameter, and schema coverage is 100% with the description already stating its provenance ('from list_diagrams or create_diagram'). The description adds no format or constraint detail beyond the schema, so 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 ('Moves a diagram to the trash') and immediately bounds the semantics: soft delete, restorable, not permanent deletion. This distinguishes it clearly from sibling tools like revert_change or apply_ops without needing their schemas.

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 an explicit usage condition ('at the person's request', 'only for a diagram the person asked to delete') and rules out permanent deletion, which is strong when-to-use guidance. It does not name a specific alternative tool (e.g., revert_change for restoring), so it stops short of the top tier.

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.