get_table_size
Retrieve physical table statistics: row count, file count, and total bytes. Verify if COMPUTE STATS has been run to get accurate values for query planning.
Instructions
Physical table statistics: row count, number of files and total bytes (SHOW TABLE STATS). Values are -1 until COMPUTE STATS has been run.
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": {
"db_name": "<db_name>",
"table_name": "<table_name>"
},
"name": "get_table_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_name | Yes | ||
| table_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |