Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

delete_node

DestructiveIdempotent

Deletes a single graph node and optionally removes its connected edges in one step, failing when edges remain if detach is false.

Instructions

Delete one node, and with detach its edges, in one step.

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": {
      "node_id": "<node_id>"
    },
    "name": "delete_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
detachNoAlso delete its edges (true), or fail when it has any.
node_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.3.0
    • addedInput schema / properties / detach / description
      Added value: +"Also delete its edges (true), or fail when it has any."
    • removedInput schema / properties / detach / title
      Removed value: -"Detach"
    • removedInput schema / properties / node_id / title
      Removed value: -"Node Id"
    • removedInput schema / title
      Removed value: -"delete_nodeArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "delete_nodeOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

The description discloses the key behavioral trait beyond the annotations: edges are removed with the node when detach is on, and otherwise the operation fails if edges exist. However, this largely restates the schema's own `detach` description, and it says nothing about whether a missing node errors or is silently ignored (relevant despite idempotentHint), nor about permissions or return behavior.

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?

One short sentence with the mutation and its cascade behavior front-loaded; there is no filler. The only cost is the awkward clause construction, which slightly slows parsing of the detach condition.

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 two-parameter mutation, this is complete enough: annotations already carry destructive/idempotent/closed-world semantics, the schema documents detach, and there is no output schema to explain. The cascade-versus-fail distinction is the one non-obvious behavior and it is stated.

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 50%: `detach` is documented in the schema and the description echoes its cascade/fail semantics, but `node_id` is undocumented in both places apart from its self-evident name. The description adds some meaning for detach but does not compensate for the uncovered node_id parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Delete one node") plus the distinct cascade behavior ("with detach its edges"). The phrasing is slightly garbled ("and with detach its edges"), and it does not name a sibling such as delete_edge, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named (e.g., delete_edge for removing edges without deleting the node). An agent can infer that this is the node-deletion tool, but routing between it and delete_edge/batch_import is left to guesswork.

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