peaka_list_columns
Lists all columns for a known Peaka table, including names, data types, and constraints, so you can inspect table structure before writing SQL.
Instructions
List all columns for a given table in the Peaka project. Returns column names, data types, and constraints. Use this directly when the table is known. For several tables, peaka_get_project_metadata with tables=[...] reads them in one call.
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>",
"catalogId": "<catalogId>",
"schemaName": "<schemaName>",
"tableName": "<tableName>"
},
"name": "peaka_list_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalogId | Yes | 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 to run against. | |
| tableName | Yes | ||
| schemaName | Yes |