list_tables
Lists tables and views in a configured database, optionally filtering by name and limiting results, so you can find exact table or view names without dumping every object.
Instructions
List all tables and views in the named database.
Use this to find a table's exact name. For its columns and keys use get_table_schema; to find which table holds a column, use find_columns; for every table's columns at once, get_database_schema.
Narrow instead of listing everything: pattern keeps only names containing it
(fuzzy, case-insensitive — "order" matches ORDERS, order_items). limit returns
at most that many rows, so a huge database can't flood the answer.
Returns meta and tables, one item per table or view with schema, name and
kind (table or view). With limit set, meta.truncated is true when more
tables matched than were returned.
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": "list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Return at most this many items; `meta.truncated` is then true when more matched. Omit to return every match. | |
| pattern | No | Keep only tables whose name contains this text, case-insensitively: 'order' matches ORDERS and order_items. Omit for every table. | |
| database | Yes | Name of a configured database, exactly as list_databases returns it (case-sensitive). Not a DSN, host or server-side database name. An unknown name is an error that lists the configured names. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| tables | Yes |