peaka_create_cache_batch
Create caches for multiple SaaS tables in one call instead of repeated single-cache requests. Each item is processed independently, so check every entry for success or error and retry failures.
Instructions
Create caches for multiple tables in a single call. Use this instead of repeated peaka_create_cache calls when caching many tables. 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. Items are processed independently, so some can succeed while others fail: the response contains one entry per item with success, error, and the created cache. Check every entry and report or retry the failed ones rather than assuming the whole batch succeeded. Each item supports the same optional schedule expressions as peaka_create_cache (ISO-8601 durations, e.g. PT6H, P1D, P7D, P30D).
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>",
"items": "<items>"
},
"name": "peaka_create_cache_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Tables to cache. Must contain at least one item. | |
| projectId | Yes | The Peaka project ID to run against. |