Verify one measurement capsule
verify_capsuleVerify one measurement capsule. Pass capsule_json as the capsule's JSON TEXT (exact: number lexemes are kept) or as an object. Recomputes capsule_id (sha256 of the canonical JSON without capsule_id), picks the rule by the capsule's schema (csoai.measurement-capsule/0.2: RFC 6962 Merkle with 0x00/0x01 domain separation; the superseded v0.1 capsule schema: the v0.1 rule), finds the published batch of the same kind, recomputes that batch's root from its published leaves, and returns the audit path of this capsule against the root named by the signed index. States: INCLUDED, NOT_INCLUDED, ID_MISMATCH, UNCHECKABLE, NOT_PUBLISHED. Verifying is free forever. It proves the bytes were published and bound; what they measured is the capsule's own measurement_state and limitations — measurement, not endorsement.
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": {
"capsule_json": "<capsule_json>"
},
"name": "verify_capsule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capsule_json | Yes | The capsule: its JSON text (preferred, byte-exact) or the parsed object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch | No | ||
| state | Yes | ||
| reason | No | ||
| doctrine | No | ||
| inclusion | No | ||
| capsule_id | No | ||
| index_signature | No |