# NousResearch/hermes-agent · Handling anyOf/oneOf union schemas in tool argument coercion

## Open now

- 1 issue, 1 PR open on GitHub.
- #23129: \[Bug\]: MCP HTTP client double-encodes anyOf:\[string,array\] arguments — Jina read_url always fails
- PR #23213: fix(mcp): resolve anyOf/oneOf union types in coerce_tool_args

These members all concern tool argument handling for JSON schemas that use anyOf/oneOf unions, including expected-type derivation and coercion in model tools, MCP, and agent code. One member reports an MCP HTTP client issue where anyOf string/array arguments appear to be double-encoded, affecting a Jina read_url tool.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 2 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #23129: \[Bug\]: MCP HTTP client double-encodes anyOf:\[string,array\] arguments — Jina read_url always fails

## Prior & competing PRs

- **#23213: fix(mcp): resolve anyOf/oneOf union types in coerce_tool_args**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `8a99e33503`, `d6da3dcbb0`
  - files: `tests/run_agent/test_tool_arg_coercion.py`, `tools/arg_coercion.py`
- **#23347: fix(agent): coerce tool args for anyOf/oneOf union schemas**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#23213`, `#23129`
- **#25577: fix(model_tools): derive expected types from anyOf/oneOf union schemas**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`

## Fix status

- No merged fix on record.
- Subsystem: `mcp`
