store_contexts_batch
Batch store session contexts in a single transaction to reduce overhead and speed up data persistence. Improve efficiency by saving all contexts at once.
Instructions
Store multiple session contexts in a single transaction (40-60% faster)
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": {
"session_id": "<session_id>",
"contexts": "<contexts>"
},
"name": "store_contexts_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contexts | Yes | Array of contexts to store | |
| session_id | Yes | Session ID for all contexts | |
| idempotency_key | No | Optional idempotency key for safe retries |