Skip to main content
Glama
chacharin

mcp-lightrag

by chacharin

create_relation

Create a relationship between two existing entities in the knowledge graph by specifying source, target, and properties.

Instructions

Create a relationship between two entities that both already exist in the knowledge graph.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
relation_dataYesRelationship properties, e.g. {'description': '...', 'keywords': '...', 'weight': 1.0}.
source_entityYesName of the source entity. Must already exist.
target_entityYesName of the target entity. Must already exist.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only says 'create a relationship' and gives no information about idempotency, behavior if the relation already exists, directionality enforcement, or any side effects. This is a significant gap for a mutation tool.

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 a single, front-loaded sentence that delivers the essential purpose and constraint with zero wasted words. It earns its place completely.

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?

Given the output schema exists and the parameter schemas are thorough, the description covers the core prerequisites. However, because there are no annotations, the lack of behavioral context (e.g., duplicate handling) leaves part of the tool's behavior unspecified, making it adequate but not fully complete.

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?

Schema description coverage is 100%, so the input schema already fully documents all three parameters. The description adds no parameter-level details beyond what the schema provides, so baseline 3 is appropriate.

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 states a clear action ('create') on a specific resource ('relationship between two entities') and includes a crucial constraint ('both already exist'), which distinguishes it from create_entity and edit_relation. An agent can immediately tell this tool is for new relations between existing nodes.

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 'both already exist' implies the precondition for using this tool and hints that entities must be created first with create_entity. However, it does not explicitly name alternatives or state when not to use it, such as when editing an existing relation with edit_relation. Usage is inferred rather than spelled out.

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