Skip to main content
Glama

PostgreSQL MCP Server

AGPL 3.0
498
94
  • Linux
  • Apple

pg_manage_comments

Manage PostgreSQL object comments by retrieving, setting, or removing comments on tables, columns, functions, and other database objects. Supports bulk discovery for efficient comment management.

Instructions

Manage PostgreSQL object comments - get, set, remove comments on tables, columns, functions, and other database objects. Examples: operation="get" with objectType="table", objectName="users", operation="set" with comment text, operation="bulk_get" for discovery

Input Schema

NameRequiredDescriptionDefault
columnNameNoColumn name (required when objectType is "column")
commentNoComment text (required for set operation)
connectionStringNoPostgreSQL connection string (optional)
filterObjectTypeNoFilter by object type in bulk_get operation
includeSystemObjectsNoInclude system objects in bulk_get (defaults to false)
objectNameNoName of the object (required for get/set/remove)
objectTypeNoType of database object (required for get/set/remove)
operationYesOperation: get (retrieve comments), set (add/update comment), remove (delete comment), bulk_get (discovery mode)
schemaNoSchema name (defaults to public, required for most object types)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "columnName": { "description": "Column name (required when objectType is \"column\")", "type": "string" }, "comment": { "description": "Comment text (required for set operation)", "type": "string" }, "connectionString": { "description": "PostgreSQL connection string (optional)", "type": "string" }, "filterObjectType": { "description": "Filter by object type in bulk_get operation", "enum": [ "table", "column", "index", "constraint", "function", "trigger", "view", "sequence", "schema", "database" ], "type": "string" }, "includeSystemObjects": { "description": "Include system objects in bulk_get (defaults to false)", "type": "boolean" }, "objectName": { "description": "Name of the object (required for get/set/remove)", "type": "string" }, "objectType": { "description": "Type of database object (required for get/set/remove)", "enum": [ "table", "column", "index", "constraint", "function", "trigger", "view", "sequence", "schema", "database" ], "type": "string" }, "operation": { "description": "Operation: get (retrieve comments), set (add/update comment), remove (delete comment), bulk_get (discovery mode)", "enum": [ "get", "set", "remove", "bulk_get" ], "type": "string" }, "schema": { "description": "Schema name (defaults to public, required for most object types)", "type": "string" } }, "required": [ "operation" ], "type": "object" }

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/HenkDz/postgresql-mcp-server'

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