Skip to main content
Glama
tomschell
by tomschell

kg_edges

Create, list, and maintain relationships between knowledge graph nodes, including cleanup and rebuilding to ensure data integrity.

Instructions

Unified tool for relationship operations. Supports: 'create' to link nodes, 'list' to view relationships, 'maintain' for cleanup and rebuilding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo[maintain] Maximum nodes to process.
nodeIdNo[list] Filter edges by node ID (shows edges connected to this node).
relationNo[create] Relationship type: references, relates_to, derived_from, blocks, duplicates.
toNodeIdNo[create] Target node ID.
operationYesEdge operation: 'create' to link nodes, 'list' to view edges, 'maintain' for maintenance.
fromNodeIdNo[create] Source node ID.
maintainOpNo[maintain] Maintenance type: rebuild, prune, reclassify, comprehensive.comprehensive
pruneThresholdNo[maintain] Strength threshold for pruning (lower = more aggressive).
rebuildThresholdNo[maintain] Similarity threshold for rebuilding (higher = stricter).
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It hints at destructive behavior only through 'maintain for cleanup and rebuilding' but never discloses reversibility, side effects, what gets removed, or whether create involves validation. This is minimal disclosure.

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 sentences, front-loaded with the tool's unifying purpose and a compact list of supported operations. Every phrase adds information; no filler.

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?

For a 9-parameter, 3-operation unified tool with no annotations and no output schema, the description is underspecified: it doesn't explain operation-dependent parameter groups, required fields beyond the schema, or return/error behavior. The operation list alone isn't enough given the tool's complexity.

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?

The input schema has 100% description coverage, including operation-specific tags like '[create]' and '[maintain]', so the schema already carries parameter semantics. The tool description itself adds no parameter meaning beyond naming the operations, so baseline 3 applies.

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 opens with 'Unified tool for relationship operations' and specifies three concrete verbs: 'create' to link nodes, 'list' to view relationships, 'maintain' for cleanup/rebuilding. This clearly distinguishes kg_edges from sibling node/tag/search tools as the relationship/edge manager.

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?

It provides clear per-operation guidance ('create' to link, 'list' to view, 'maintain' for cleanup/rebuilding), but does not name alternatives or explicitly say when not to use this tool relative to kg_link_session or kg_node. The context is clear but exclusions are absent.

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/tomschell/personal-kg-mcp'

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