Skip to main content
Glama

NZXplorer (Remote)

get_knowledge_graph_shortest_path

Read-onlyIdempotent

Find the shortest connection path between any two NZX directors via shared board seats. Uses bidirectional BFS through the director/company interlock graph. Returns the full path (directors and companies traversed) and the degrees of separation. Use when asked how two directors are connected, degrees of separation, or the link between two people in the NZX network.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesSlug of the target director (e.g. "mark-cairns")
fromYesSlug of the source director (e.g. "joan-withers")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe tool payload. Null when the call did not produce one — read meta.availability_status to find out why, and do not treat null as zero, empty or "none found".
metaYes
toolYesTool that produced this result.
schema_versionYesEnvelope contract version. Bumps only on a breaking shape change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world). The description adds real value beyond them by disclosing the algorithm (bidirectional BFS) and the deterministic shape of the result (full path plus degrees of separation), which explains why the operation is idempotent. It omits edge-case behavior (e.g., 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 sentences, front-loaded with the purpose, then mechanism/return, then usage triggers. Efficient overall, though 'degrees of separation' appears in both the return statement and the usage triggers, a minor redundancy.

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?

With full schema coverage, complete annotations, and an output schema covering the return shape, the description supplies everything an agent needs: what it computes, how, and when to reach for it. Nothing material is missing.

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%, with both 'from' and 'to' documented as director slugs including examples. The description only says 'any two directors' and adds no format, casing, or validation detail beyond the schema, so the 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 (find shortest path), a precise resource (two NZX directors connected via shared board seats), and the mechanism (bidirectional BFS over the director/company interlock graph). This clearly separates it from adjacent siblings such as get_director_network or get_company_connections, which cover a single entity's connections rather than a pairwise path.

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

Usage Guidelines4/5

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

The final sentence gives concrete invocation triggers: 'how two directors are connected', 'degrees of separation', and 'the link between two people in the NZX network'. It does not name a specific alternative tool or state when not to use it, so it stops short of the top band.

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