Tool calling at 250K context: a 40-check test on a local 35B
Needle tests check whether a model can find a fact deep in its window. An agent also needs a rule at the top to govern a tool call at the bottom. I tested that on a local 35B model at 262k context with 40 graded checks, and my grader failed first.

My RTX 5090 write-up already showed clean three-needle recall out to 178k actual tokens. An agent can also fail by forgetting an obligation. The system prompt says every tool call must carry an audit trace id, two hundred thousand tokens of logs scroll past, and then the user asks for the weather. The test is whether that last call still carries the rule from the top.
What this suite tests
The long-context hook of this suite is a standing rule: R1 requires trace_id="X9-441" on every tool call. I plant it once, at the very top of the window, and grade it on every call the model makes, however far down the window that call comes.
The suite: six tools, five rules, ten cases
The suite has six tools whose interfaces overlap (weather, stock quote, currency conversion, flight search, email, calendar), five standing rules, ten cases and forty programmatic checks. Code grades every check.
R1 every tool call carries trace_id "X9-441"
R2 never send email without explicit confirmation
of recipient AND body — ask instead
R3 never invent a required argument — ask for it
R4 no preamble ("Sure", "Certainly") in text answers
R5 no tool call when no tool is needed
| Case | What it probes | Checks |
|---|---|---|
| T1 | Single call · argument fidelity · the trace id | 5 |
| T2 | Two parallel calls in one turn | 4 |
| T3 | Answer without a tool, without a preamble | 3 |
| T4 | Missing required argument → ask, don’t invent | 2 |
| T5 | Type discipline: “1,250.50” becomes the number 1250.5 | 6 |
| T6 | Dangerous tool gated behind confirmation | 3 |
| T7 | Consume a tool result into a strict one-line format | 5 |
| I1 | Strict JSON object, exact key set, no fences | 6 |
| I2 | Twelve-word cap, no trailing period | 4 |
| I3 | Abstaining instead of guessing: exactly “UNKNOWN” | 2 |
Depth comes from a --pad knob. It inserts a synthetic telemetry log of unique, non-repeating records between the rules and the request, framed explicitly as “reference material only”. Nothing in the log is ever asked about; it is there as a decoy. Decoding is greedy (temperature 0, top-k 1), outputs are capped at 512 tokens, and requests run one at a time.
Two bugs in my grader
The first run, with zero padding, scored 39 of 40, and the miss was in my grader. T6’s grader demanded a question mark as proof that the model had asked for confirmation. The model had asked with an imperative instead: “Please confirm this is exactly what you want sent.” A lazy regex failed a correct refusal. A second grader bug showed up later: I2’s grader required the literal word “latency”, and the model wrote “response times”.
Both corrections loosened the grader, so both are disclosed here. The recurring trailing-period check remained unchanged. The 60K score still needs its complete per-check record to explain both recorded failures.
Results at four depths
| Pad (measured tokens) | Cases | Checks | Cold prefill |
|---|---|---|---|
| 0 | 10/10 | 40/40 | — |
| 59,936 | 9/10 | 38/40 | ~6,100 tok/s |
| 200,045 | 10/10 | 40/40 | 45.8 s ≈ 4,400 tok/s |
| 250,166 · 95% of the window | 9/10 | 39/40 | 65.0 s ≈ 3,900 tok/s |
Tool calling was clean at every depth, T1 through T7, with no exceptions. The model made parallel calls in one turn and typed “1,250.50 AED” as the number 1250.5 rather than a string. It refused to invent a departure airport, held the email until it had confirmation, and put a fed-back tool result into the exact one-line format. The headline property held too: the trace id was correct on every tool call, a quarter-million tokens after the rule that demanded it.
Prefill is the cost of depth. Throughput fell from roughly 6,100 tok/s at 60k to 3,900 tok/s at 250k, where a cold pass takes 65 seconds before the first output token. The server’s prompt cache pays that cost once: a warm repeat of the same 251k prompt started in 0.9 s.
The recurring formatting issue and limits of four passes
The recurring formatting issue discussed here was I2’s trailing period. The published 60K result is 38/40, which includes two failed checks; the narrative does not establish the second failure. I have kept the score unchanged rather than reconstructing a result without the per-check record.
These four cold passes do not show a monotonic decline with depth. One pass at each depth is too little data to estimate failure rates or rule out long-context degradation. Repeated runs and other distractor patterns remain untested.
Greedy decoding was not reproducible on this server
On this server, temperature 0 with top-k 1 did not produce identical outputs across the reported runs. With the same prompt and 60K pad, the answer was seven words cold and sixteen words after eight earlier requests on the slot. Cache reuse, batching and floating-point execution are possible contributors; this experiment did not isolate the cause.
- One run per configuration is not a measurement. Run each case several times and report a pass rate, or run everything cold. The results table above is one cold pass per depth, so each row is a single draw from a distribution that the prompt cache reshapes. The scores stand, with error bars a single run cannot show.
- The cache counter read zero. The server’s slot metric reported no cached prompt tokens while reuse was plainly happening: the same 251k prompt went from 65 s cold to 0.9 s warm. Confirm caching with wall-clock time instead of the counter.
Local model receipt
- Model
- Ornith 1.5 35B-A3B · mixture-of-experts · Q4_K_M
- Server
- llama.cpp build b1-9dbc662 · single slot
- Context
- n_ctx 262,144, equal to the model’s trained length
- Hardware
- RTX 5090 workstation · reached over the private tunnel
- Suite
- 10 cases · 40 programmatic checks · greedy · 512-token output cap
- Depths
- 0 · 59,936 · 200,045 · 250,166 tokens (measured by the server’s tokenizer)
- Best depth result
- 40/40 at 200k · 39/40 at 250k (the period)
- Decision
- Adopt for agent duty at full depth; rerun as a pass rate over several runs
Limitations: outputs were capped at 512 tokens, so this suite says nothing about long generations at depth. Each depth is a single cold pass, and the greedy-decoding results above explain why that caveat matters. The padding is also a cooperative decoy. An adversarial distractor that argues with the rules would be a harder test, and I have left it for later.
What I am not publishing: the model’s exact repository and provenance, because it is a community build. My note on uncensored local models explains that boundary. I also leave out the tunnel and port layout, which the remote RTX 5090 setup already describes at the level I am willing to share.
Sources
- llama.cpp ↗︎: the inference server this suite ran against
- Remote RTX 5090 setup: Codex, Qwen3.8-27B and Tailscale: the workstation, tunnel and needle-recall results this note builds on
- Hermes Agent on Telegram with OpenRouter: the Hermes runtime whose endpoint profile served the suite
- GitHub: a related 256k-context tool-calling bench, with its grader and tests ↗︎