Skip to main content
Glama
postgresai

postgresai

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_issuesC

List issues from PostgresAI API (same as CLI 'issues list')

view_issueA

View a specific issue with its comments and who has seen it (seen_by). Viewing records the token owner in the issue's seen-by list as an AI agent.

post_issue_commentA

Post a new comment to an issue (optionally as a reply). Local files passed via 'attachments' are uploaded to PostgresAI storage and the resulting markdown links are appended to the comment body (image extensions render inline).

create_issueB

Create a new issue in PostgresAI. Local files passed via 'attachments' are uploaded to PostgresAI storage and the resulting markdown links are appended to the issue description.

update_issueA

Update an existing issue (title, description, status, labels, is_hidden). Use status=1 to close, status=0 to reopen. Local files passed via 'attachments' are uploaded and appended to 'description'; if 'description' is omitted, the existing description is fetched first and appended to.

update_issue_commentA

Update an existing issue comment. Local files passed via 'attachments' are uploaded and appended to 'content' as markdown links.

upload_fileA

Upload a local file to PostgresAI storage. Returns the storage URL and a ready-to-paste markdown link (image extensions get the inline ![](url) form, others get [](url)). For posting attachments alongside an issue or comment, prefer the 'attachments' parameter on the issue/comment tools — this tool is for ad-hoc uploads or when you need the URL out of band.

download_fileA

Download a file from PostgresAI storage by URL (full URL under the storage base, or a relative path like /files/123/foo.png).

view_action_itemC

View action item(s) with all details. Supports single ID or multiple IDs.

list_action_itemsC

List action items for an issue

create_action_itemC

Create a new action item for an issue

update_action_itemB

Update an action item: mark as done/not done, approve/reject, or edit title/description

deploy_monitoringA

Put a Postgres database under PostgresAI Cloud monitoring (same as pgai mon deploy): prepares the monitoring role (an admin URL creates it; otherwise returns the SQL), provisions the monitoring box, and returns JSON with status (ready | in_progress | deleting | deleted | inactive | action_required | failed: the same words as pgai dblab deploy), health_url (the project's Health Matrix in the console), dashboard_url (Grafana, signing in with PostgresAI) and next (the exact next action). A billed box is provisioned only with yes: true: without it the result is action_required with the price (and requires_payment_method), so show the price to the user first. It does not wait for the box: call it again to see the status. Safe to call again. When PostgresAI can't reach the database the way an IP allowlist refuses (or with ip_first), the box's IP is reserved first and the result is action_required with step allow_ip (ip, cidr, host, port, reserved_until): give the user the cidr and port to allow on the database, then call again with ip_allowed: true. ClickHouse Managed Postgres, RDS and Supabase are detected from the host. An RDS instance that is not publicly accessible is monitored over AWS PrivateLink (no public IP, nothing opened): the user creates a CloudFormation stack in their AWS account from a link. Until the stack exists the result is action_required with step privatelink_stack and cfn_url: give the user the link to open in the RDS's AWS account (the stack keeps its name); once they say it is created, call again. When this machine's aws CLI can read the RDS (read-only; aws_profile picks the profile, no_aws: true skips it), the link is filled in and the stack is found by itself; otherwise pass vpce_service, the stack's VpceServiceName output. When the URL's user can't create the monitoring role, or this machine can't reach the database (a private RDS seen from outside its VPC), the result is action_required with step prepare_db, sql, nonce and monitoring_password: the user runs the SQL as the master user in that database, then call again with monitoring_password and nonce. host_stats: true adds host CPU, memory, disk and IOPS through a read-only role the stack creates (host_stats_role: its HostStatsRoleArn output, when not read from AWS). Aurora and RDS Proxy endpoints are not supported over PrivateLink. Supabase needs no password (PostgresAI prepares the database through the Supabase Management API): the first time, the result is action_required with a consent link in next; give it to the user to open and approve, then call again. Elsewhere the URL must carry its password, and only these query parameters: sslmode, channel_binding, application_name. PGAI_MON_PASSWORD, PGPASSWORD and CLICKHOUSE_KEY_ID + CLICKHOUSE_KEY_SECRET of the server process are not used (pass clickhouse_key), and a TLS failure is not retried in plaintext (say sslmode=disable for a server without TLS). For another database on a server PostgresAI already monitors for the org, an admin URL with sslmode=require (or verify-*), each query parameter once, is enough: PostgresAI fills in the password of postgres_ai_mon it keeps, over TLS only (on a server without TLS, pass the postgres_ai_mon URL; if nobody has its password, the user runs in a terminal: pgai mon instances delete the server's other databases, then pgai mon deploy --reset-password with PGAI_MON_PASSWORD set to a new one, then deploys them again with it).

list_reportsA

List checkup reports. Returns report metadata: id, project, status, timestamps. Use get_report_data to fetch actual report content. Supports date-based filtering with before_date.

list_report_filesA

List files in a checkup report (metadata only, no content). Checkup reports are JSON, one file per check. Either report_id or check_id must be provided. For findings and recommendations, use the issues tools (list_issues, view_issue).

get_report_dataA

Get checkup report file content: the JSON data of each check, in a 'data' field. Either report_id or check_id must be provided. For findings and recommendations, use the issues tools (list_issues, view_issue).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 16 tools

Disambiguation4/5

Most tools target a distinct resource+action (issues, action items, reports, files, monitoring), and descriptions explicitly cross-reference each other (e.g. list_reports points to get_report_data, report tools point to issues tools). Minor overlap remains between view_action_item (accepts multiple IDs) and list_action_items, and between post_issue_comment/create_issue attachment handling versus upload_file, but the descriptions make the intended boundaries clear.

Naming Consistency4/5

Nearly all tools follow a consistent verb_noun snake_case pattern (list_issues, create_issue, update_issue_comment, list_report_files, deploy_monitoring). Deviations are small: 'post_issue_comment' rather than create_*, and 'get_report_data' vs 'view_issue'/'view_action_item' mixing get/view verbs, but nothing confusing.

Tool Count4/5

16 tools cover four coherent sub-areas (issues, action items, checkup reports, storage/attachments) plus monitoring deployment, so each tool has a plausible place. It sits just above the ideal 3-15 range and the very large deploy_monitoring description does a lot of work in one tool, but nothing feels redundant.

Completeness3/5

Issues and action items have list/view/create/update and comment create/update, but no delete operations for issues, comments, or action items, and there is no way to list or remove monitored deployments (deploy_monitoring is idempotent but there is no status-list or undeploy tool). Reports are read-only by nature, which is acceptable, but the missing lifecycle ends will force agents to work around gaps.

Maintenance

ActivityActive
ResponsivenessLimited data