check_format
Validate the formats JSON Schema CANNOT express: a string field passes 'type: string' whether it holds 2026-02-30, v1.2..3 or '1,234.56' where a decimal-string was meant — the hidden-schema trap that burns agent pipelines three systems later. payload + formats map ($-path → format, wildcards ok) over a CLOSED, cited set: date-iso/datetime-iso/time-iso (RFC 3339, real calendar, leap second allowed), semver (official grammar), uuid, sha256-hex, hex-color, slug, decimal-string, e164, email, url, currency-iso, country-iso, json-pointer (RFC 6901). Every violation: path, offending value, why, expected — the error is the repair prompt. Unknown format names are refused with the full closed set. Free.
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>",
"formats": "<formats>"
},
"name": "check_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formats | Yes | e.g. {"$.due": "date-iso"} | |
| payload | Yes | any JSON document |