db_list_tables
List all tables and views in a target PostgreSQL or MySQL database using a connection ID or main connection plus database name, with optional schema filtering for inspection.
Instructions
List all tables and views in a target database. Provide either connectionId (sub-connection alias or "mainId:db") or mainId + database
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "db_list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mainId | No | Main connection ID (e.g. "postgres_main") | |
| schema | No | Filter by schema (e.g. "public" for PostgreSQL) | |
| database | No | Target database name on the main connection server | |
| connectionId | No | Sub-connection ID / alias (e.g. "app_db") or composite ("mainId:db") |