table_stats
Retrieve PostgreSQL table statistics including row count, size metrics, and vacuum information to monitor database performance and storage usage.
Instructions
Get statistics for a table (row count, size, bloat).
Args:
table_name: Name of the table
schema: Schema name (default: public)
Returns:
Table statistics including row count, sizes, and vacuum info
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table_name": "<table_name>"
},
"name": "table_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | ||
| schema | No | public |