Skip to main content
Glama
danielsimonjr

Enhanced Knowledge Graph Memory Server

check_graph

Detects orphan relations, missing parents, and hierarchy cycles in a knowledge graph. Optionally repairs orphans and missing parent IDs.

Instructions

v12.5.0 — Detect orphan relations (from/to references a missing entity), missing parents (entity.parentId references a missing entity), and hierarchy cycles. Reports findings. With apply=true, deletes orphan relations and clears missing parentIds; cycles are always reported but never auto-repaired (no safe default for which edge to break).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNoWhen true, repair orphan relations + missing parentIds. Default false (dry-run).
Behavior4/5

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

With no annotations, the description fully discloses: it reports findings, with apply=true it deletes orphan relations and clears missing parentIds, but cycles are never auto-repaired. It does not detail response format or permissions, but the core behavioral traits are well-covered.

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?

The description is extremely concise, using two sentences to pack purpose, capabilities, and limitations. It front-loads the core detection task and immediately follows with conditions and caveats. No wasted words.

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?

The tool has no output schema, so the description should ideally characterize the report format. It only says 'Reports findings' without structure. It also omits safety or permission context, though the non-destructive default partially compensates. Adequate for a simple tool but not fully complete.

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% for the single boolean parameter 'apply', but the description adds value beyond the schema's simple 'repair' description by specifying exactly what actions are taken (deletes orphan relations, clears missing parentIds) and what remains unchanged (cycles). This clarifies the parameter's impact.

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?

The description clearly states the tool detects orphan relations, missing parents, and hierarchy cycles, and optionally repairs the first two. This verb+resource combination is distinctive among siblings like validate_graph (which likely only validates) and detect_patterns (different focus).

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?

The description explicitly says when to use: to detect/fix graph integrity. It notes the default dry-run behavior and, crucially, that cycles are never auto-repaired, guiding the agent on what not to expect. It lacks explicit comparisons to alternatives but the context is clear.

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