Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

update_edge

DestructiveIdempotent

Modify properties on an existing graph edge and return it. Set merge mode to keep or remove unlisted properties; edge type cannot be changed.

Instructions

Set properties on an existing edge and return it.

The edge type cannot change: delete the edge and create a new one.

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>",
      "properties": "<properties>"
    },
    "name": "update_edge"
  }
}

Input Schema

NameRequiredDescriptionDefault
mergeNoKeep the properties not listed (true) or remove them.
edge_idYes
propertiesYesProperties to set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.3.0
    • removedInput schema / properties / edge_id / title
      Removed value: -"Edge Id"
    • addedInput schema / properties / merge / description
      Added value: +"Keep the properties not listed (true) or remove them."
    • removedInput schema / properties / merge / title
      Removed value: -"Merge"
    • removedInput schema / properties / properties / additionalProperties
      Removed value: -true
    • addedInput schema / properties / properties / description
      Added value: +"Properties to set."
    • removedInput schema / properties / properties / title
      Removed value: -"Properties"
    • removedInput schema / title
      Removed value: -"update_edgeArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "update_edgeOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false. The description adds the return value and the immutability of the edge type, but does not explain the destructive facet itself (that merge=false strips unlisted properties) or what happens when edge_id does not exist.

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?

Two short sentences with the core action front-loaded and the constraint immediately after. No filler, and the critical caveat is not buried.

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 3-parameter mutation with a nested properties object and no output schema, it covers the return value, the key constraint, and the merge toggle via the schema. Missing edge cases (nonexistent edge, per-property replace vs merge behavior on nested values) keep it below a 5.

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 67% and merge's semantics are fully documented in the schema, so the baseline is a 3. The description adds real meaning for the properties object: the edge type is not settable through it and must be changed by delete plus create, which the schema does not state.

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 ("Set properties on an existing edge") plus a return behavior, and explicitly separates this from the create path by noting the edge type cannot change. An agent can tell it apart from create_edge/delete_edge 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?

Gives a clear when-to-use (existing edge, property updates) and a when-not-to-use case: to change the edge type, delete and recreate. The alternative tools are described by action rather than by name, so the agent must map "delete the edge and create a new one" to delete_edge/create_edge itself.

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