Skip to main content
Glama

Find how two concepts connect

find_path
Read-onlyIdempotent

The shortest chain of links joining two concepts of one tree, following links either way (at most 6 links), each step saying which way its link points, or connected: false when none is that short. For questions like "how does A relate to B?"; concepts in different trees are an error. get_links lists one concept's own links, and get_graph_report how a whole tree links.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "find_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe other concept's ID, in the same tree as `from`.
fromYesConcept ID, its tree first: `company:product/okforest-product-brief`. In a Forest of one tree, the tree may be left out.

Output Schema

NameRequiredDescriptionDefault
treeYesThe tree they're in, and the commit it was read at.
stepsYesThe concepts from `from` to `to`, both included; empty when they aren't joined.
connectedYesWhether a chain of at most 6 links joins them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare this a safe, idempotent, closed-world read. The description goes well beyond them: it discloses the 6-link search cap, that traversal follows links in either direction, that each step reports the link's direction, the `connected: false` no-path return, and the cross-tree error condition. These are real behavioral traits an agent could not infer from annotations alone.

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 behavior (shortest chain, 6-link cap, bidirectional), then the usage/routing sentence. No filler and no restatement of the title or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read tool with full schema coverage and an output schema, the description covers everything an agent needs: search bound, direction semantics, failure return, and the error case. Return shape is correctly left to the output schema.

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 coverage is 100% and the schema already documents the `from`/`to` format, tree prefix, and the single-tree omission rule. The description reinforces the same-tree requirement but adds no new syntax or format detail, 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 and resource: the shortest link chain joining two concepts of one tree, bidirectional, capped at 6 links. It also names what it is not (get_links for one concept's own links, get_graph_report for whole-tree structure), so an agent can route without opening a schema.

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?

Gives an explicit trigger ("how does A relate to B?"), an explicit exclusion (concepts in different trees are an error), and names two sibling tools with their distinct scopes. Both when-to-use and when-to-use-something-else are covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources