Skip to main content
Glama
Michael2150

flamerobin-mcp-server

get_foreign_keys

Retrieve foreign key relationships for a table, including both outgoing dependencies and incoming references, with optional filtering by direction or related table.

Instructions

Return foreign key relationships involving a table, in one or both directions. Returns [{direction, from_table, from_column, to_table, to_column, on_update, on_delete}]. Prefer inspect_table to get FKs alongside column and index information in one call. direction='out': what other tables this table depends on. direction='in': what other tables reference this table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseYesDatabase key from list_databases.
tableYesTable name. Automatically uppercased.
directionNo'out' = FKs declared on this table, 'in' = FKs on other tables pointing here, 'all' (default) = both.all
relatedTableNoOptional case-insensitive .NET regex to filter by the other table name. Filters to_table for direction='out', from_table for direction='in'.
Behavior4/5

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

No annotations provided, so the description carries the full burden. It explains that table names are automatically uppercased, defines direction semantics, and describes the optional filtering by relatedTable. However, it does not mention potential errors or limitations like pagination.

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?

The description is concise, front-loaded with purpose, and uses a clear structure including a return signature and bullet-like explanations. No unnecessary words.

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?

Given four parameters, no output schema, and no annotations, the description covers the essential behaviors: direction semantics, auto-uppercase, and filtering. It mentions a sibling tool for context. Minor omissions like error handling do not significantly detract.

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?

Schema coverage is 100%, but the description adds value beyond the schema by explaining the direction parameter values and how relatedTable filtering works based on direction, aiding correct usage.

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 clearly states it returns foreign key relationships involving a table, specifies the return format, and distinguishes itself from the sibling tool inspect_table by noting that inspect_table is preferred for getting FKs alongside other info.

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 tells when to use an alternative (inspect_table) and explains the meaning of direction values, providing clear guidance on how to use the tool effectively.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Michael2150/flamerobin-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server