Skip to main content
Glama
Knowledge Graph Memory Server

Knowledge Graph Memory Server

Add Observations

add_observations
Idempotent

Add new observations to existing knowledge graph entities to persist details across chats; group contents by entity, skip duplicates, and require entities to already exist.

Instructions

Add new observations to existing entities 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": {
      "observations": "<observations>"
    },
    "name": "add_observations"
  }
}

Input Schema

NameRequiredDescriptionDefault
observationsYesThe observations to add, grouped by entity. Each entity must already exist; an observation it already has is not added again

Output Schema

NameRequiredDescriptionDefault
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.0
    • addedInput schema / properties / observations / description
      Added value: +"The observations to add, grouped by entity. Each entity must already exist; an observation it already has is not added again"
  2. Changed2 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed2 schema fields changed
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "results": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "addedObservations": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "entityName": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "entityName",
      +          "addedObservations"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "results"
      +  ],
      +  "type": "object"
      +}
  4. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true and destructive=false, so the safety profile is carried by structured fields. The description reinforces the additive, non-destructive framing and the existing-entity constraint, but adds no detail about error behavior (e.g., unknown entity name) or what happens to duplicate contents beyond what the schema already states.

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?

A single front-loaded sentence with the action, resource, and scope in order and zero filler. Nothing could be removed without losing meaning.

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?

An output schema exists so return values need not be described, and the input schema is fully documented with the entity-must-exist and no-duplicate rules. What remains missing is behavioral error context for nonexistent entities, a minor gap for a simple additive tool.

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?

Only one parameter with 100% schema description coverage, including the nested entityName/contents semantics and the duplicate-suppression rule. Baseline 3 applies since the schema does all the parameter work and the description adds nothing further.

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 observations') and a clear scope ('existing entities in the knowledge graph'), which distinguishes it from create_entities/create_relations. It does not explicitly name a sibling to route against, so it falls 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 Guidelines3/5

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

'to existing entities' implies a prerequisite (the entity must already exist) and 'new' implies duplicates are skipped, giving implied rather than explicit usage guidance. There is no statement of when to prefer this over create_entities or how it relates to delete_observations.

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