table_sizes
Rank PostgreSQL tables by total relation size, including table data, indexes, and TOAST, to find space-heavy tables for cleanup or review.
Instructions
[READ] Largest tables by total relation size (table + indexes + TOAST).
Args:
limit: Number of tables to return, largest first (default 20).
target: Target name from config; omit for the default.
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": "table_sizes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| target | No |