Skip to main content
Glama

update_nodes

DestructiveIdempotent

Modify existing knowledge graph nodes by renaming, changing type, or replacing metadata; only specified fields are updated.

Instructions

Update existing nodes in the knowledge graph: rename them, change their type, or replace their metadata. Only the fields you pass are changed

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": {
      "nodes": "<nodes>"
    },
    "name": "update_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodesYesArray of nodes to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.0
    • changedInput schema / properties / nodes / items / properties / name / description
      Previous value: -"The name of the node to update"New value: +"The current name of the node to update"
    • addedInput schema / properties / nodes / items / properties / newName
      Added value: +{
      +  "description": "A new name for the node. Its edges, and metadata of linked nodes that refers to it by name, are updated to match",
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds real value beyond that with "Only the fields you pass are changed," which tells the agent this is a partial rather than a wholesale replacement. It stops short of describing failure behavior, such as what happens when a named node 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 operation and its scope stated first and the partial-update caveat second. Nothing is redundant and nothing important is 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 single-parameter, fully documented mutation whose annotations already flag it as destructive, the description covers what can be changed and how partial updates behave. The remaining gap is error and precondition behavior, which matters but is secondary given the rich schema.

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, and the description earns an extra point by stating the partial-update contract — omitted fields are left untouched — which is not spelled out in the schema. It also names the three mutable facets, which helps the agent map intent onto the nested node object.

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?

The description uses a specific verb and resource ("Update existing nodes in the knowledge graph") and enumerates the three supported mutations: rename, retype, replace metadata. This clearly separates it from siblings like update_edges or update_npc, though it does not name any of them explicitly.

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 "existing nodes" — this is for modification, not creation — but there is no explicit guidance on when to reach for this versus add_nodes or delete_nodes, nor any prerequisite such as locating the node first. An agent must infer the workflow from the word "existing."

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