Skip to main content
Glama

Find paths between two objects

get_paths
Read-onlyIdempotent

Shortest relationship paths between two objects in a memory — the one-call answer to "how are A and B connected?". start and target accept an object id or an exact name/display name. Each returned path is a list of steps {from, rel, direction, to}; paths are all of minimal length. found: false with frontier_truncated: true means the search hit its breadth cap, NOT proof the objects are disconnected. Use this instead of chaining get_object calls hop by hop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
startYes
memoryYes
targetYes
max_depthNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive. The description goes well beyond them by disclosing that all returned paths are of minimal length, that found:false with frontier_truncated:true means a breadth cap was hit rather than proven disconnection, and the exact step shape {from, rel, direction, to}. That failure-mode disclosure is the kind of context annotations cannot carry.

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?

The core purpose and the connectivity framing are front-loaded, followed by parameter semantics and then the truncation caveat. Every sentence carries distinct information; there is no padding or repetition.

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?

For a 5-param traversal tool with an output schema, the description supplies the return shape, the minimality guarantee, and the ambiguity caveat, so the agent can interpret results correctly. It stops short of explaining the memory parameter and the meaning/default of limit and max_depth, which are relevant to controlling the search.

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 0%, so the description must compensate; it explains that start and target accept an object id or exact name/display name, which is genuinely useful. However, memory, limit, and max_depth are left entirely unexplained, and max_depth in particular interacts with the frontier_truncated behavior described. Partial compensation only.

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?

The description names a specific operation and resource ('Shortest relationship paths between two objects in a memory') and frames the goal from the agent's perspective ('how are A and B connected?'). It is clearly distinguishable from siblings like get_object or get_graph at a glance.

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?

It explicitly routes the agent away from an alternative: 'Use this instead of chaining get_object calls hop by hop.' That names the competing approach and the condition (multi-hop connection queries) under which this tool wins, which is exactly the when-to-use guidance needed.

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