Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

List table join relationships

list_relationships
Read-onlyIdempotent

Lists table join relationships with evidence to audit the join graph before modeling and act on gaps with set_relationship; find_join_path returns shortest routes.

Instructions

List table join relationships with their evidence (declared FK, inferred name/containment scores, or manual), plus multi-role joins, unlinked identifier columns, and ad-hoc query joins not yet recorded. Use to audit the join graph before or during modeling and act with set_relationship; use find_join_path to get the shortest join route between two Terms. Returns grouped relationships, role notes, and review rules.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_relationships"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNoRestrict results to relationships touching this table.
statusNoFilter joins by review status: 'proposed', 'accepted', 'rejected', or 'all'.proposed
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 / status / description
      Previous value: -"Which relationships to list."New value: +"Filter joins by review status: 'proposed', 'accepted', 'rejected', or 'all'."
    • changedInput schema / properties / table / description
      Previous value: -"Only relationships touching this table."New value: +"Restrict results to relationships touching this table."
  2. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered structurally. The description adds value beyond that by disclosing the evidence taxonomy returned (declared FK vs. inferred scores vs. manual) and that role notes, grouped output, and review rules come back — useful context about what the payload contains and why a join might appear. It stops short of noting limits such as result volume or ordering, which keeps it off 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 sentences, front-loaded with the core purpose, then the enumerated coverage, then usage and sibling routing. The middle clause is dense but each element (multi-role joins, unlinked identifiers, unrecorded query joins) conveys distinct scope. The trailing "Returns grouped relationships, role notes, and review rules" is somewhat redundant given an output schema exists.

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?

An output schema exists, so the description does not need to fully explain return shapes, and it still sketches them adequately. The main completeness gap is behavioral rather than structural: the default status='proposed' filter is never surfaced, so an agent could under-report the join graph on a first call. Otherwise scope, siblings, and evidence semantics are all present for a moderate-complexity read tool.

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 100%, so the schema already documents table, status, and datasource, and the description adds essentially nothing parameter-specific. Crucially, it never flags that status defaults to 'proposed', meaning accepted and rejected joins are excluded unless the caller overrides — the single most consequential default here. It also doesn't explain how "unlinked identifier columns" relate to filtering or what happens when table is omitted.

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 ("List table join relationships") and immediately enumerates what the listing covers: evidence provenance (declared FK, inferred name/containment scores, manual), multi-role joins, unlinked identifier columns, and unrecorded ad-hoc query joins. That level of detail makes it clearly distinguishable from find_join_path (path lookup) and set_relationship (mutation), so an agent can select it 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?

"Use to audit the join graph before or during modeling and act with set_relationship" names the sibling this tool pairs with, and "use find_join_path to get the shortest join route between two Terms" names the alternative and the condition that selects it. The when-to-use context (auditing before/during modeling) and the routing to two competing siblings are both explicit.

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