Skip to main content
Glama
danielsimonjr

Enhanced Knowledge Graph Memory Server

update_entity

Update an existing entity in the knowledge graph with partial field changes, using optional version checking to prevent overwrite conflicts.

Instructions

η.5.5.c — Update an entity with optional optimistic concurrency control. Pass expectedVersion to assert the live entity is at that version; throws VersionConflictError on mismatch. Omit for legacy last-write-wins. OCC-guarded writes auto-increment version.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesEntity name to update
updatesYesPartial entity object — fields to change
expectedVersionNoOCC: assert the live entity is at this version. Throws VersionConflictError on mismatch.
Behavior3/5

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

Discloses OCC behavior: auto-increment version, VersionConflictError, and last-write-wins fallback. However, with no annotations, the description carries full burden. It omits details like whether updates are atomic, what happens to unspecified fields, and what the return value is (no output schema). Some transparency but incomplete.

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?

Two sentences, efficient and front-loaded with purpose. The opening code 'η.5.5.c' is minor noise but does not degrade clarity significantly. Could be slightly more structured, but overall concise.

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

Completeness2/5

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

Missing critical context: no guidance on alternatives given the large sibling list, no mention of permissions or side effects, and no description of return value (no output schema). The complexity of the tool and the many siblings demand more completeness than provided.

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%, baseline 3. The description adds extra context beyond the schema: explaining OCC modes and that version auto-increments. This helps the agent understand the parameter's significance beyond the schema description.

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 'Update an entity' which clearly identifies the verb and resource. The addition of 'with optional optimistic concurrency control' distinguishes it from a basic update. However, it does not explicitly compare to siblings like set_entity_parent or create_entities, so it loses a point for not fully differentiating.

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?

Explains when to use expectedVersion vs omit, which provides usage guidance for the optional parameter. But it does not address when to use this tool over alternatives such as set_entity_parent or delete_entities. The usage context is implied rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielsimonjr/memory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server