Skip to main content
Glama

delete_entity

Destructive

Deletes an ERD entity AND every NESTED entity below it (parentId, at any depth), as well as everything that references any of them: fields, relations, lineage, assignments, dependencies, data sources. The deletion is PERMANENT: no trash and no undo by the tool (only a version saved before the call, via restore_version — which replaces the WHOLE schema —, gets back what was deleted). It takes away what is listed here and what depends on the block (its content, its sharing grants, its block links); the attached comments, tasks and documents are not destroyed (they survive, detached). This is NOT an erasure of personal data: that goes through deleting the account or the project. If comment threads were anchored on the deleted entities, they SURVIVE (they are not destroyed) but become invisible on the canvas: reported via orphanedComments + note. Same for the attached TASKS (create_tasks): they survive, move to 'No subject' and re-attach automatically if a block with the same id is recreated — reported via detachedTasks + note.

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": {
      "id": "<id>"
    },
    "name": "delete_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the entity to delete (cascades to the nested entities + fields, relations, lineage, assignments, dependencies, dataSources)
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed2 schema fields changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / id / description
      Previous value: -"ID de l'entité à supprimer (cascade sur les entités imbriquées + fields, relations, lineage, assignments, dependencies, dataSources)"New value: +"ID of the entity to delete (cascades to the nested entities + fields, relations, lineage, assignments, dependencies, dataSources)"
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond destructiveHint=true, the description discloses permanence (no trash, no undo), the qualified recovery semantics (only a pre-call version, and restore_version replaces the whole schema), exactly which attached artifacts die with the entity, and which survive (comments become orphaned/invisible; tasks move to 'No subject' and re-attach on id reuse). This is substantially more than the annotations carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The destructive core is correctly front-loaded, but the text is dense and partly repetitive: the 'what is listed here and what depends on the block (its content, its sharing grants, its block links)' sentence largely restates the first sentence's cascade list and leans on internal vocabulary ('block', 'canvas') that isn't defined. Emphasis-by-capitalization and HR-style phrasing add length without adding decision-relevant information.

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?

For a permanent, cascading deletion with no output schema, the description supplies everything an agent needs: blast radius, irreversibility, recovery caveat, and even the response fields (`orphanedComments`, `detachedTasks`, `note`) that would otherwise be undocumented. Nothing material is left out for calling this safely.

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 both parameters are already documented, including the cascade note on `id` and the project-override behavior on `expectedProjectId`. The description adds nothing about parameter format or interaction that the schema doesn't already state, 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?

The first sentence names a specific verb (deletes) and resource (ERD entity) and immediately scopes it: the entity, all nested descendants at any depth, and everything referencing them (fields, relations, lineage, assignments, dependencies, data sources). An agent can tell this apart from a single-field or single-relation deletion without consulting the schema.

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?

Explicit exclusions are given ('This is NOT an erasure of personal data: that goes through deleting the account or the project') and the recovery path is named (restore_version), which is a genuine alternative-selection cue. What's missing is routing for narrower cases — e.g. deleting one field or relation rather than a whole entity subtree — which the agent must infer from the sibling list.

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.