Skip to main content
Glama

WritersLogic developer agents

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

NameRequiredDescriptionDefault
atNoJSON pointer to the subschema holding the union ("" for the root, "/properties/pet" for a nested one).
valueYesThe JSON value to classify.
schemaYesThe root schema; $ref targets are resolved inside it. Full JSON Schema 2020-12 (local $ref only).
keywordNoRequired only when the subschema has both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources