union-branch
Which oneOf / anyOf branch a JSON value matches, or why several or none do — Evaluates a JSON value against every branch of a oneOf or anyOf in a caller-supplied JSON Schema 2020-12 (or OpenAPI schema converted to it) and reports which branches match, the exact errors of each branch that fails with the JSON pointer of each offending value, the closest branch, and which branch an OpenAPI discriminator points to. For agents debugging why a tool or API payload is rejected w
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": {
"schema": "<schema>",
"value": "<value>"
},
"name": "union-branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | JSON pointer to the subschema holding the union ("" for the root, "/properties/pet" for a nested one). | |
| value | Yes | The JSON value to classify. | |
| schema | Yes | The root schema; $ref targets are resolved inside it. Full JSON Schema 2020-12 (local $ref only). | |
| keyword | No | Required only when the subschema has both. |