list_tables
Retrieve tables and views in a given schema with estimated row counts and comments.
Instructions
List tables and views in schema with an estimated row count and comment.
Returns columns=[name, row_estimate, comment, kind]. row_estimate comes
from the planner statistics (pg_class.reltuples) and is approximate; it is
null for views.
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": {
"schema": "<schema>"
},
"name": "list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| columns | Yes | ||
| row_count | Yes | ||
| truncated | Yes |