Skip to main content
Glama

locus_find_paths

Find all minimum-hop knowledge graph paths between two entities using BFS, returning each hop and a readable narrative to trace how people, systems, or concepts connect.

Instructions

Find all shortest KG paths between two entities using BFS. Returns each path as a list of hops with a human-readable narrative. Useful for tracing how two people, systems, or concepts are connected.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "entity_a": "<entity_a>",
      "entity_b": "<entity_b>"
    },
    "name": "locus_find_paths"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_aYes
entity_bYes
max_depthNo
store_pathNo.locus
predicate_filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries full behavioral burden; it does disclose the BFS algorithm, shortest-path-only semantics, and the return shape (hops + human-readable narrative), which is genuinely useful. It omits important behavior: the `store_path` parameter defaulting to '.locus' implies a disk write/side effect that is never described, and there is no word on max_depth truncation behavior, performance on large graphs, or what happens when no path exists.

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?

Three short sentences, front-loaded with the operation and algorithm, then the return shape, then the use case. No filler or restatement of the tool name; each sentence adds something. Slight inefficiency in that the third sentence is soft framing rather than operational detail.

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 description covers purpose, algorithm, and return format, which is decent for a 5-param tool with no output schema. But with 0% schema coverage and a persistence-minded default (`store_path='.locus'`), failing to explain three of five parameters and the side effects of the call leaves the definition incomplete for correct invocation.

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 description coverage is 0%, so the description must compensate — and it does not. Of five parameters, only entity_a/entity_b are implicitly explained ('between two entities'); max_depth, store_path, and predicate_filter are never mentioned in the description, leaving their semantics entirely to bare schema types and defaults. This is a real gap at 0% coverage, so it falls below the midpoint.

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 a specific verb and resource: 'Find all shortest KG paths between two entities using BFS,' naming the algorithm and the shortest-path constraint. It is clear what the tool returns (a list of hops plus a narrative). It does not explicitly contrast with the graph-traversal sibling (e.g., locus_kg_traverse), so an agent must infer the boundary.

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?

'Useful for tracing how two people, systems, or concepts are connected' gives an implied use case, which is better than nothing. However, there is no explicit when-not guidance, no mention of alternatives such as locus_kg_traverse or locus_query_entity, and no stated prerequisites (e.g., both entities must already exist in the graph).

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