correct
Create a priority-1000 correction observation to override lower-priority extracted fields. A correction stays authoritative on its field, whatever the field's merge rule and whatever the priority or source kind of any other write, until a…
Instructions
Create a priority-1000 correction observation to override lower-priority extracted fields. A correction stays authoritative on its field, whatever the field's merge rule and whatever the priority or source kind of any other write, until a later correction replaces it; among corrections the later one wins by deterministic recency, and on a merge_array field it replaces the whole array (merge_array_by_key fields excepted: corrections combine by key). Read back the entity snapshot and field provenance before claiming the correction took effect. On a merge_array field send the complete list you want, not just the change (pass [] to clear it, and expected_version if another writer may change it concurrently).
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": {
"entity_id": "<entity_id>",
"entity_type": "<entity_type>",
"field": "<field>",
"value": "<value>",
"idempotency_key": "<idempotency_key>"
},
"name": "correct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field name to correct | |
| value | Yes | Corrected value | |
| user_id | No | Optional. Inferred from authentication if omitted. | |
| entity_id | Yes | Entity ID to correct | |
| overwrite | No | Apply even when expected_version is stale. Ignored when it is omitted. | |
| entity_type | Yes | Entity type | |
| idempotency_key | Yes | Required. Client-provided idempotency key for replay-safe corrections. | |
| expected_version | No | Optional opaque entity_version from a current entity read. A stale token returns ERR_FIELD_VERSION_CONFLICT and writes nothing. |