Skip to main content
Glama
OntoLayer MCP Server

OntoLayer MCP Server

by AshubShafqat

find_path

Trace an undirected path between two entities within the authorized subgraph, capped at six hops, to reveal how they connect.

Instructions

Find an undirected path inside the authorized subgraph (at most six hops).

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": {
      "source": "<source>",
      "target": "<target>"
    },
    "name": "find_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
targetYes
max_depthNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior2/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 two useful traits — undirected traversal and an access-control scoping constraint — but omits whether results are shortest paths, what is returned when the endpoints are disconnected, and why the description's six-hop cap differs from the schema's max_depth default of 4 (is max_depth silently clamped?).

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?

A single sentence with no filler, and the two constraints that matter most (undirected, authorized subgraph) are front-loaded before the hop limit.

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?

An output schema exists, so return-value explanation is fairly excused, but for a 3-parameter graph traversal with zero schema coverage and no annotations the description is thin: missing identifier format, no-path behavior, and the max_depth-vs-six-hops relationship are all gaps an agent would hit on first use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 explain all three parameters and largely does not. 'Source' and 'target' are never defined (entity IDs? term strings? ontology-qualified names?), and the only real semantic added is the six-hop ceiling, which ambiguously relates to max_depth rather than clarifying it.

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+resource ('Find an ... path') and narrows it with two real qualifiers: undirected and restricted to the authorized subgraph. An agent can distinguish it from neighbors like get_relationships or get_lineage by the endpoint-to-endpoint framing, but the description never names those alternatives to make the contrast explicit.

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?

Usage is implied rather than stated: the phrase 'inside the authorized subgraph' signals this returns only paths the caller is permitted to see, and the endpoint parameters imply 'use when you have a source and a target.' There is no explicit when-not guidance (e.g., prefer get_relationships for direct neighbors) and no note on what happens when no path exists.

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