Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

delete_edge

DestructiveIdempotent

Removes a single graph edge by its edge ID, which you can obtain from neighbor queries or GQL query results.

Instructions

Delete one edge. Edge IDs come from get_neighbors (edge_id) or execute_gql (RETURN id(r) AS id).

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": {
      "edge_id": "<edge_id>"
    },
    "name": "delete_edge"
  }
}

Input Schema

NameRequiredDescriptionDefault
edge_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • removedInput schema / properties / edge_id / title
      Removed value: -"Edge Id"
    • removedInput schema / title
      Removed value: -"delete_edgeArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "delete_edgeOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the core safety profile is covered. The description adds useful ID provenance but does not describe side effects such as what happens to related nodes or how invalid IDs are handled.

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?

The description is two short sentences, front-loads the action, and uses the second sentence only for critical parameter provenance. There is no redundant or decorative wording.

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 simple one-parameter delete tool with no output schema and annotations covering destructiveness and idempotency, this is mostly complete. The main remaining gap is error or side-effect behavior when deleting an edge that does not exist or is connected to nodes.

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 description coverage is 0%, so the description must compensate for the single required edge_id parameter. It does so by explaining where edge IDs originate: get_neighbors returns edge_id and execute_gql can return id(r), which materially improves correct invocation.

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 description states a specific verb and resource: "Delete one edge." The word "one" makes the single-edge scope explicit, distinguishing it from batch deletion or node deletion without requiring 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 Guidelines3/5

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

Usage is implied by the operation, and the description helpfully says where edge IDs come from. However, it does not state when to use this versus related operations such as delete_node, nor does it describe conditions where deletion should be avoided.

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