Skip to main content
Glama
chacharin

mcp-lightrag

by chacharin

check_entity_exists

Verify if an exact entity name exists in the knowledge graph to prevent collisions before creating or renaming entities.

Instructions

Check whether an entity with an exact name already exists in the knowledge graph. Call this before create_entity or edit_entity (rename) to avoid an unintended collision.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesExact entity name to check.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It implies a read-only check but does not explicitly state side-effect-free behavior, permissions, or return format. Since output schema exists, return format is covered, but the description lacks explicit behavioral disclosure such as 'does not modify the graph'.

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 core purpose and then usage guidance. No unnecessary words.

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?

Given the single parameter and existence of output schema, the description provides the essential usage context. It doesn't cover edge cases like case sensitivity, but that's a minor gap for a simple check 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?

Schema covers the only parameter 'name' with description 'Exact entity name to check.' The description adds no new information beyond the schema, 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?

States a specific verb 'check' and resource 'entity existence' with scope 'exact name in knowledge graph'. Clearly distinguishes from siblings like create_entity and edit_entity by naming them in usage.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly instructs to call before create_entity or edit_entity to avoid collision, providing clear when-to-use context. No exclusions mentioned, but the guidance is actionable.

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