Skip to main content
Glama

delete_data_source

Destructive

Deletes a data-source block and all its lineage connections. 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 it, 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_data_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDeletes the block + cascades to meta and lineage
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: -"Supprime la cellule + cascade sur meta et lineage"New value: +"Deletes the block + cascades to meta and lineage"
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description goes well beyond that: permanence, absence of trash/undo, the whole-schema side effect of restore_version, exactly what is destroyed (content, sharing grants, block links), and exactly what survives detached (comments, tasks, documents). It even names the response fields reporting side effects (orphanedComments, detachedTasks, note), which is strong disclosure 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?

The action and its permanence are front-loaded in the first two sentences, and most of the length is justified for a destructive tool. There is some redundancy, though: 'the attached comments, tasks and documents are not destroyed (they survive, detached)' is restated later for comments and tasks, and the capitalization emphasis is heavier than needed.

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?

Despite having no output schema, the description tells the agent what side-effect fields come back (orphanedComments, detachedTasks, note) and what state the system is left in. For a two-parameter destructive tool, nothing an agent needs to call it safely is missing.

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 documented, and the description adds little parameter-level detail beyond implying that 'id' identifies the block ('if a block with the same id is recreated'). expectedProjectId and its session-override behavior are left entirely to the schema, 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 opening sentence states a specific verb and resource plus cascade scope: 'Deletes a data-source block and all its lineage connections.' It further distinguishes the operation from personal-data erasure ('that goes through deleting the account or the project'), so an agent can tell it apart from other delete_* siblings without opening a 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?

It gives a clear when-not ('This is NOT an erasure of personal data: that goes through deleting the account or the project') and names the recovery path (restore_version), including its caveat that it replaces the WHOLE schema. It does not explicitly contrast with sibling deletes such as delete_content_block, so the routing guidance is clear but not complete.

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.