peaka_get_query
Retrieve a saved query by its ID to view the SQL, query type, display name, and refresh schedule for materialized queries. Verify query details before running or modifying it.
Instructions
Read a single saved query by its ID. Returns the full query object including displayName, inputQuery (SQL), queryType, and the auto-refresh schedule for materialized queries.
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>",
"queryId": "<queryId>"
},
"name": "peaka_get_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queryId | Yes | The query ID to read. Available from peaka_list_queries. | |
| projectId | Yes | The Peaka project ID to run against. |