Skip to main content
Glama
DataPilot MCP

DataPilot MCP

Describe relationships

describe_relationships
Read-only

Map declared foreign-key edges and join columns across a database schema, including edge counts and tables with no detected relationships, so you can plan joins before writing queries.

Instructions

Return declared foreign-key edges and their join columns across the discovered schema, plus the edge count and tables without a detected relationship. Use this before a join. Use describe_table for specific column and key details.

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": "describe_relationships"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasNoAlias from list_connections. Omit only when exactly one database is open.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / alias / description
      Added value: +"Alias from list_connections. Omit only when exactly one database is open."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds genuine context beyond that: results are limited to *declared* foreign keys and explicitly report tables with no detected relationship, which warns the agent about coverage gaps. It stops short of describing ordering or whether edges include composite-key grouping, but the output schema likely handles the shape.

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?

Three short sentences, front-loaded with the primary output, then the usage directive, then the alternative. No filler and no repetition of the title.

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?

For a read-only introspection tool with a full input schema, an output schema, and complete annotations, nothing an agent needs in order to call it correctly is missing. The description covers what is returned, when to reach for it, and where to go instead.

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% and the single alias parameter is documented in full, including the 'omit only when exactly one database is open' condition. The description adds nothing about the parameter, so the baseline of 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?

The description opens with a specific verb and resource: return declared foreign-key edges plus their join columns across the discovered schema. It also enumerates the accompanying payload (edge count, tables with no detected relationship), which lets an agent distinguish it from describe_table 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?

It gives an explicit trigger ('Use this before a join') and names the alternative with the condition that selects it ('Use describe_table for specific column and key details'). The routing decision is fully specified rather than inferred.

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