Validate a message
validateChecks that a message is valid for its type (it is encoded to UPER): returns JSON {valid, bytes (its size in UPER), message, ref, to, data (the same message, unchanged)}; if it is not valid, the error.
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": {
"payload": "<payload>",
"from": "<from>"
},
"name": "validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | The message: its type (CAM, DENM, CPM, MAPEM/MAP, SPATEM/SPAT, IVIM, SREM, SSEM, VAM) = its default version, or a message for a specific version (_Cam_v2, see list_message_versions). Optional: omitted, the payload's V2X header says which | |
| from | Yes | The payload's format: UPER, WER, JER or XER | |
| compat | No | Optional: 'asn1c' = encode/decode like asn1c-based stacks (Vanetza), which depart from X.691 in a few constraints (e.g. CPM container list, PathPredicted); 'standard' = X.691 (ObjSys, asn1tools). Default: standard | |
| comment | No | Optional: one short line saying what this call is for, in the user's language, e.g. 'Minimal CAM without the low-frequency container'. Shown next to the result; it does not change the operation | |
| payload | Yes | The message: UPER/WER as hex, JER (JSON) or XER (XML) as text | |
| diagnose | No | Optional: true = if the payload does not decode, also the bit-level breakdown of what was read (where it failed comes always) |