Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Find shortest join path between Terms

find_join_path
Read-onlyIdempotent

Computes the shortest accepted relationship chain between two terms or tables and returns ON conditions, a FROM/JOIN clause, fan-out warnings, and alternative join roles for pairwise join checks.

Instructions

Compute the shortest chain of accepted relationships between two Terms or tables, returning ON conditions, a ready FROM/JOIN clause, fan-out warnings, shared-parent caveats, and alternative join roles (e.g. billing vs delivery city). Use when checking one specific pairwise join; use get_query_context to assemble columns, attributes, and joins for a full multi-Term query, and list_relationships to review unapproved joins. Returns found=false when no accepted path connects them.

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_join_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesStarting Term name or physical table name.
targetYesDestination Term name or physical table name.
datasourceNoDatasource name. Optional when only one datasource is registered.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.2
    • changedInput schema / properties / source / description
      Previous value: -"Term or table to start from."New value: +"Starting Term name or physical table name."
    • changedInput schema / properties / target / description
      Previous value: -"Term or table to reach."New value: +"Destination Term name or physical table name."
  2. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive, closed-world operation, and the description still adds meaningful behavior: fan-out warnings, shared-parent caveats, alternative join roles, and the found=false failure mode. It stops short of describing ordering/ranking when multiple equally short paths exist, which keeps it from a 5.

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 front-loaded sentences with no filler: what it does, when to use it vs alternatives, and the negative result case. The feature enumeration in the first sentence is long but each item conveys distinct return content, so little could be cut without loss.

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?

An output schema exists, yet the description still signals the notable payload elements and the found=false edge case, and usage routing to two siblings is explicit. For a 3-parameter read tool with full annotation coverage, nothing an agent needs to invoke it correctly 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 description coverage is 100%, with source and target documented as 'Term name or physical table name' and datasource noted as optional for single-datasource setups. The description adds nothing about parameter semantics 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 and resource ('Compute the shortest chain of accepted relationships between two Terms or tables') and enumerates what comes back (ON conditions, FROM/JOIN clause, fan-out warnings, alternative join roles). This is clearly distinguishable from the query-assembly and relationship-review siblings.

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?

Explicitly scopes usage to 'checking one specific pairwise join' and names two alternatives with the conditions that select them: get_query_context for full multi-Term queries and list_relationships for unapproved joins. Both when-to-use and when-not-to-use are covered.

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