Skip to main content
Glama
vk-ai

PgGuard Agent

by vk-ai

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PGHOSTNoDatabase host.127.0.0.1
PGPORTNoDatabase port.5432
PGUSERNoDatabase user.
PGSSLMODENoSSL mode.disable
PGDATABASENoDatabase name.
VAULT_ADDRNoVault address (required when PGGUARD_SECRETS_PROVIDER=vault).
VAULT_TOKENNoVault token (required when PGGUARD_SECRETS_PROVIDER=vault).
PGGUARD_ROLENoRole selecting reader, writer, migrator, or admin (config/policy.yaml).
PGGUARD_AUDIT_DIRNoDirectory for audit logs../data/audit
PGGUARD_POLICY_PATHNoPath to policy.yaml../config/policy.yaml
PGGUARD_SECRETS_PROVIDERNoSecrets provider: env or vault.

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
db_healthA

Ping Postgres and return server version

list_schemasA

List non-system schemas

list_tablesA

List tables, optionally filtered by schema

describe_tableC

Describe columns for a table

run_selectA

Run a single SELECT (max rows enforced; read-only role preferred)

run_dmlA

INSERT/UPDATE/DELETE when role allows; requires confirm:true

run_ddlA

CREATE/ALTER/DROP for migrator/admin; requires confirm:true; optional dry_run

explain_queryC

EXPLAIN a query; ANALYZE optional and gated by policy

get_audit_tailA

Return last N append-only audit events

whoamiA

Current agent role and effective policy

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 10 tools

Disambiguation5/5

Each tool maps to a distinct operation: health check, schema inspection, row queries, DML, DDL, explain, audit, and role/policy lookup. Even though run_select and explain_query both accept queries, their purposes are clearly separated.

Naming Consistency4/5

Most tools follow a clear verb_noun snake_case convention: list_schemas, list_tables, describe_table, run_select, explain_query, get_audit_tail. Minor deviations are db_health and whoami, which do not follow the verb_noun pattern but remain understandable.

Tool Count5/5

Ten tools is well-scoped for a Postgres guard agent. Each tool serves a necessary purpose in the lifecycle of inspecting and safely modifying a database.

Completeness4/5

The tool surface covers health, schema discovery, SELECT/DML/DDL execution, query planning, auditing, and policy introspection. Minor gaps like explicit transaction control or listing roles/indexes are not critical, but could make some workflows more seamless.

Maintenance

ActivityMaintained
ResponsivenessNo issues