# NousResearch/hermes-agent · Large integer precision loss in tool argument coercion

## Open now

- 1 issue, 3 PRs open on GitHub.
- #55314: Tool-argument coercion rounds large integers (Discord/Telegram IDs) through float, corrupting the value
- PR #40763: fix(tools): preserve large integer precision in coerce_tool_args
- PR #55324: fix(tools): parse large integers via int() to avoid float precision loss
- PR #59253: fix(tools): preserve large integer tool args

A bug where tool-argument coercion converts large integers (e.g., Discord/Telegram IDs) through float, silently corrupting their values. Multiple fix attempts address parsing these values via int() instead of float to preserve precision.

## TL;DR

- 6 member(s): 1 open issue(s), 1 closed issue(s), 3 open PR(s), 0 merged PR(s), 1 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.29`: 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

- #55314: Tool-argument coercion rounds large integers (Discord/Telegram IDs) through float, corrupting the value

## Closed / duplicate issues

- #59186: \[Bug\]: Tool integer coercion silently rounds large string integers

## Prior & competing PRs

- **#40763: fix(tools): preserve large integer precision in coerce_tool_args**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `model_tools.py`, `tests/test_model_tools.py`
- **#55315: Preserve large integers in tool-argument coercion (no float rounding)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#40763`, `#55324`, `#55314`
- **#55324: fix(tools): parse large integers via int() to avoid float precision loss**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#55315`
  - files: `model_tools.py`
- **#59253: fix(tools): preserve large integer tool args**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#40763`, `#55315`, `#56408`, `#40763`, `#59186`, `#59192`
  - files: `model_tools.py`, `tests/run_agent/test_tool_arg_coercion.py`

## Fix status

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