Read PG buffercache summary
read_pg_buffercache_summarySummarize PostgreSQL shared buffer cache usage, reporting total, free, used, and dirty buffers plus average usage count. Requires pg_buffercache; returns available=false when not installed.
Instructions
Read a high-level summary of the PostgreSQL shared buffer cache usage. Reports total buffers, free/used buffers, dirty buffers, and average usage count. Requires the pg_buffercache extension. If not installed, returns available=false.
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": "read_pg_buffercache_summary"
}
}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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| available | Yes | ||
| free_buffers | No | ||
| used_buffers | No | ||
| dirty_buffers | No | ||
| total_buffers | No | ||
| average_usage_count | No |