Audit settings
audit_settingsAudit PostgreSQL configuration via pg_settings to flag dangerous toggles, cross-setting conflicts, and RAM-relative memory ratios when host RAM is supplied.
Instructions
Sanity-sweep postgresql.conf via pg_settings. Flags dangerous toggles (fsync=off, full_page_writes=off, autovacuum=off, synchronous_commit=off), cross-setting issues (maintenance_work_mem < work_mem, tiny shared_buffers, low checkpoint_completion_target), and — when total_ram_mb is supplied — RAM-relative ratios for shared_buffers / effective_cache_size (PostgreSQL can't see host RAM itself). Pure read. Returns an object with ram_aware (bool), examined_settings (list), detail, and findings (tripped rules only — each with code, setting, current, status, suggestion).
Example: audit_settings(total_ram_mb=16384)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: a database id from list_databases, to target a configured secondary (read-only) database; omit for the primary. Database names that are not configured ids are rejected. | |
| total_ram_mb | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | ||
| findings | Yes | ||
| ram_aware | Yes | ||
| examined_settings | Yes |