Skip to main content
Glama

locus_kg_traverse

Traverse a knowledge graph from a starting entity via BFS up to a set depth, filtered by predicate or direction, to return every reachable entity and its facts.

Instructions

BFS traversal from a starting entity. Walks the KG graph up to max_depth hops, optionally filtered by predicate or direction. Returns all reachable entities and their facts.

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": {
      "start": "<start>"
    },
    "name": "locus_kg_traverse"
  }
}

Input Schema

NameRequiredDescriptionDefault
startYesStarting entity name.
directionNoboth
max_depthNo
store_pathNo.locus
predicate_filterNoOnly follow these predicates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the algorithmic approach (BFS), the depth bound, and the return shape ('all reachable entities and their facts'), which lets an agent anticipate a potentially large result set. It omits whether the operation is strictly read-only, any result-size or performance limits as depth grows, and any prerequisite that the KG be populated.

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?

Three short sentences with the traversal definition front-loaded, followed by scope controls and the return value. Every sentence adds information; there is no filler or restatement of the tool name.

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?

For a five-parameter graph traversal with no annotations and no output schema, the definition covers the core mechanics and return shape adequately. Gaps remain around the undocumented store_path, the absence of any read-only or cost/size signal, and the lack of routing guidance versus related query tools.

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 only 40%, so the description needs to compensate, and it partly does: it explains max_depth as hop count and frames predicate_filter and direction as optional traversal filters. It says nothing about store_path, leaving one of five parameters undocumented in both schema and description.

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?

The description states a specific algorithm and resource: 'BFS traversal from a starting entity' that 'walks the KG graph up to max_depth hops'. That is concrete enough to distinguish it from a single-entity lookup or a path-finding tool. It does not name a sibling (e.g. locus_find_paths or locus_query_entity) to make the boundary explicit, which keeps it short of a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. The clause 'optionally filtered by predicate or direction' describes parameter options, not the conditions under which an agent should choose this traversal over locus_query_entity, locus_kg_match, or locus_find_paths. The agent must infer its niche from the verb alone.

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