doris_get_table_size
Retrieve storage size for a Doris database or table; when a table is specified, return total data bytes and partition count.
Instructions
看表/库的数据量。不传 table:SHOW DATA(必须先选库,返回每表 Size + ReplicaCount)。 传 table:SHOW PARTITIONS 汇总 DataSize,给出总字节数与分区数。
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": {
"database": "<database>"
},
"name": "doris_get_table_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | 可选,表名;不传则返回该库所有表的大小 | |
| database | Yes | 数据库名 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |