memory_write_checked
Write a memory value with optimistic concurrency control, succeeding only when the version matches to prevent lost updates.
Instructions
Optimistic-concurrency write by key: succeeds only if current version equals expected_version, else returns a conflict. Prevents lost updates when multiple agents write the same key.
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": {
"text": "<text>",
"key": "<key>",
"expected_version": "<expected_version>"
},
"name": "memory_write_checked"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| text | Yes | ||
| namespace | No | facts | |
| expected_version | Yes |