peaka_search_relevant_tables
Returns up to 10 candidate tables for a data question when a project is too large to list, with descriptions, column names, and index coverage for quick inspection.
Instructions
Find candidate tables for a data question when the project is too large for peaka_list_project_tables to list. Returns up to 10 candidates, one row each: table, catalogId, the first sentence of its description, its column count and up to 40 column names, plus index state and coverage. Candidates may be incomplete or irrelevant: inspect them, then use peaka_list_columns for a candidate's full columns. If the index is unavailable, stale or has no useful matches, discover scope with peaka_list_catalogs, peaka_list_schemas and peaka_list_tables. Empty results do not mean the project has no data. Permission errors must be resolved, not bypassed with another tool. This tool does not execute SQL or refresh an index.
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>",
"question": "<question>"
},
"name": "peaka_search_relevant_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum candidate tables to return. | |
| question | Yes | The data question or concepts to search for. | |
| projectId | Yes | The Peaka project ID. |