Skip to main content
Glama

delete_dependency

Destructive

Deletes ONE dependency (arrow) by its id; the two blocks it linked are untouched. Returns an error, nothing deleted, if the id is unknown. The hierarchy arrow of a child block (id struct-{parentId}-{cellId}) is a dependency too; a block is normally re-parented with move_cell. No dry run and no undo besides restoring a saved version. The ids of a block's incoming and outgoing dependencies are read in get_cell_details. An arrow's type, label or appearance is changed by update_dependency, whereas deleting and recreating it would lose its history.

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_dependency"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the dependency to delete
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 la dépendance à supprimer"New value: +"ID of the dependency to delete"
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds substantial context beyond them: unknown id yields an error with nothing deleted, there is no dry run, and no undo exists besides restoring a saved version. It also warns that delete-and-recreate loses arrow history. The only omission is what the success response contains, which is minor.

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?

Five tight sentences, all front-loaded with the core action and impact first, then error behavior, edge cases, and alternatives. Dense and nearly waste-free, though the hierarchy-arrow sentence packs two ideas (id format and move_cell routing) into one semicolon-joined clause.

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 destructive mutation with no output schema, the description covers impact, error semantics, irreversibility, id sourcing, and sibling routing — everything an agent needs to call it safely. Only the shape of a successful return is unstated, which is a small residual gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining that the id may be a hierarchy arrow in the form struct-{parentId}-{cellId} — meaning the schema's 'ID of the dependency to delete' does not convey. The expectedProjectId parameter is left to the schema.

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 ('Deletes ONE dependency (arrow) by its id') plus scope ('ONE') and immediately clarifies what is NOT affected: 'the two blocks it linked are untouched.' It also distinguishes the hierarchy-arrow case, which an agent would otherwise confuse with deleting a block.

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

Usage Guidelines5/5

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

Names the alternatives and the conditions that select them: re-parenting goes through move_cell, changing type/label/appearance goes through update_dependency, and dependency ids are read via get_cell_details. That is explicit when-to-use and when-not-to-use routing, not implied guidance.

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.