Skip to main content
Glama

execute_sql

Run SQL queries directly on the Postgres MCP server to interact with and manage databases efficiently during development, testing, and deployment.

Instructions

Execute any SQL query

Input Schema

NameRequiredDescriptionDefault
sqlNoSQL to runall

Input Schema (JSON Schema)

{ "properties": { "sql": { "default": "all", "description": "SQL to run", "title": "Sql", "type": "string" } }, "title": "execute_sqlArguments", "type": "object" }

Other Tools

Related 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/crystaldba/postgres-mcp'

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