Skip to main content
Glama

add_metadata

Idempotent

Adds metadata to existing knowledge graph nodes in MemoryMesh, enabling users to enrich stored entities with additional context.

Instructions

Add new metadata to existing nodes in the knowledge graph

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": {
      "metadata": "<metadata>"
    },
    "name": "add_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
metadataYesArray of metadata to add

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare the safety profile: not read-only, idempotent, non-destructive, closed-world. The description adds the meaningful constraint that targets must be existing nodes, but does not say whether metadata is appended or replaces existing contents, nor what happens when nodeName does not resolve — the key behavioral questions for this mutation.

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 front-loaded sentence with no filler or redundancy. It is efficient, though the terseness leaves behavioral questions unaddressed rather than being optimally sized for a mutation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter tool with full schema coverage and annotations covering safety and idempotency, the core is present. Still missing are failure behavior for unknown nodes and whether added metadata merges with or overwrites existing metadata, which an agent needs before calling.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains nodeName and contents fully. The description adds only the notion that metadata attaches to existing nodes, with no detail on content format, duplicates, or ordering.

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 ('Add new metadata') plus a scope constraint ('to existing nodes in the knowledge graph'), which separates it from add_nodes and update_nodes. It stops short of naming any sibling explicitly, so differentiation relies on inference from the sibling list.

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?

The phrase 'existing nodes' implies the precondition that the node must already exist and that this is not the tool for creating nodes, which is useful implied guidance. There is no explicit when-to-use versus delete_metadata or update_nodes, and no statement of what to do if the node is absent.

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