Skip to main content
Glama
mcp-bd-service

mcp-bd-service

by jtesotelo

get_relationships

Read-onlyIdempotent

Retrieve foreign-key relationships between database tables to identify valid JOIN paths for SQL queries.

Instructions

All foreign-key relationships between tables (how to JOIN them).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world scope, so safety and repeatability are covered. The description adds that the result is the complete set of FK relationships, but does not state scope (current database vs. all schemas) or size characteristics. Useful but thin beyond the annotations.

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?

A single short sentence with the resource front-loaded and the practical gloss immediately after. No filler or redundant restatement of the tool name.

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 return values need not be explained, and with no parameters the call surface is trivial. The only remaining gap is scope — whether relationships are reported for the whole catalog or a single database — which an agent might need before relying on completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to disambiguate. The baseline of 4 applies; the description correctly implies the call is unfiltered and returns everything.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the specific resource returned (foreign-key relationships between tables) and clarifies its practical meaning with '(how to JOIN them)'. It is clearly distinguishable from siblings like describe_table or list_tables, though the verb is implied by the tool name rather than stated.

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

Usage Guidelines3/5

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

The parenthetical '(how to JOIN them)' implies the use case — resolving join paths — but there is no explicit when-to-use or when-not-to-use guidance, and no sibling is named as an alternative. The agent must infer that this is the tool to call before writing a multi-table query.

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