peaka_list_project_tables
List every table in a Peaka project, catalog, or schema to find the tables a data question needs before reading their columns.
Instructions
Start here to find the tables for a data question. Lists every table of the project (or of one catalog or schema), grouped by catalog.schema, one line each: its name, [cached] when it is cached, the start of its description, up to 6 column names and the tables it joins. Each schema's header gives its catalogId and how its tables are read (a SaaS source live, first page only, unless [cached]; a database live and in full). Write tables as catalog.schema.table. Choose the tables the question needs from this list, then read their columns with peaka_get_project_metadata and tables=[...] in one call.
If the project is too large to list whole, the answer gives its schemas with their table counts: list one schema with catalogId and schemaName, or use peaka_search_relevant_tables.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.
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": {
"projectId": "<projectId>"
},
"name": "peaka_list_project_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalogId | No | Only this catalog's tables. The catalog's id, or its name as written in SQL (e.g. "stripe" in stripe.payment.charges). "peaka" with schemaName query or mtquery is the saved queries, with any other schema the Peaka tables. | |
| projectId | Yes | The Peaka project ID. | |
| schemaName | No | Only this schema's tables (needs catalogId). |