peaka_create_cache
Creates a cache for an uncached SaaS table so its records are read from Peaka instead of the source; optionally sets full or incremental refresh schedules.
Instructions
Create a cache for a table in the Peaka project, so its records are read from Peaka instead of the source. Only for tables of a SaaS source that are not cached yet (peaka_list_project_tables: a SaaS schema's table without [cached]; peaka_list_tables: not_cached): a live read of them may return only the first page of records. A database table (e.g. Oracle) is read live and in full and is not cached. Create a cache only when the user asks for it or agrees to it, never to work around a failing or slow query; the first sync takes time, and until it completes the cache is not complete. Schedule expressions are optional at creation time and use ISO-8601 durations (e.g. PT6H, P1D, P7D, P30D); they can be set later with peaka_update_cache.
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_create_cache"
}
}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 | ||
| fullRefreshSchedule | No | Optional full refresh schedule. {type: 'BASIC', expression: 'P7D'} for recurring, or {type: 'NONE'} to leave it off. Omit to leave unset. | |
| incrementalSchedule | No | Optional incremental refresh schedule. {type: 'BASIC', expression: 'PT6H'} for recurring, or {type: 'NONE'} to leave it off. Omit to leave unset. |