Skip to main content
Glama

PostgreSQL MCP Server

by sbfulfil

get_table_relationships

Retrieve foreign key relationships for a specified table in a PostgreSQL database to understand and analyze table dependencies within the schema.

Instructions

Get foreign key relationships for a table

Input Schema

NameRequiredDescriptionDefault
schemaNoSchema name (default: public)public
table_nameYesName of the table

Input Schema (JSON Schema)

{ "properties": { "schema": { "default": "public", "description": "Schema name (default: public)", "type": "string" }, "table_name": { "description": "Name of the table", "type": "string" } }, "required": [ "table_name" ], "type": "object" }
Install Server

Other Tools from PostgreSQL MCP Server

Related Tools

    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/sbfulfil/pg-mcp'

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