list_tables
Retrieve tables and views from a PostgreSQL or MySQL database, optionally filtered by schema, to inspect available data structures before writing queries.
Instructions
List tables and views in a database (optionally filtered by schema).
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": {
"connection": "<connection>"
},
"name": "list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | ||
| connection | Yes | Named connection from list_connections (preferred) or a raw connection string. |