get_table_size_info
Analyze table sizes and index usage across a PostgreSQL schema to identify storage consumption and resource usage per table.
Instructions
[Tool Purpose]: Analyze size information and index usage of all tables in specified schema
[Exact Functionality]:
Retrieve size information of all tables within schema
Analyze index size and total size per table
Provide table list sorted by size
[Required Use Cases]:
When user requests "table size", "schema capacity", "index usage", etc.
When storage analysis of specific schema is needed
When resource usage status per table needs to be identified
[Strictly Prohibited Use Cases]:
Requests for table data deletion or cleanup operations
Requests for index creation or deletion
Requests for table structure changes
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": "get_table_size_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema_name | No | Schema name to analyze (default: "public") | public |
| database_name | No | Database name to analyze (uses default database if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |