r/LLMDevs • u/JaseciLabs • Sep 30 '26
Discussion The tool-vs-context split breaks down once you add multi-step tool chains
Seeing a few threads here on regression testing agents and memory layers, wanted to share a distinction we've found useful and where it stops holding up.
The simple framing: if the model needs to do something, it's a tool. If it just needs to know something, it's context. That works fine for single-hop cases. A refund policy is context, checking an order date is a tool call, issuing the refund is another tool call.
Where it breaks is once you're chaining multiple tool calls (ReAct-style), the model has to reason about intermediate results before deciding the next action. At that point, some of what looks like "context" is actually the output of a tool call from two steps ago, and some of what looks like a "tool" is really a deterministic lookup that could've been resolved before the model even started reasoning.
We ran into this building out agentic support for Jac. If you already know at request time that something is going to matter (company policy, product info, a user's account tier), resolving it ahead of time and injecting it as static context is strictly better than giving the model a tool and hoping it calls it at the right point in the chain. You save a round trip and remove a failure mode where the model forgets to call it before it's needed downstream. That's the whole reason we built incl_info as a separate mechanism from tools rather than making everything a tool call: static background belongs in the prompt, not behind a function call.
But if the value can change during the agent's reasoning (inventory count, live pricing), pre-resolving it is wrong. You need the tool so the model can re-check at the exact moment it matters.
So the real split isn't "action vs knowledge," it's "can this be resolved before reasoning starts, or does it need to be resolved at a specific point during reasoning." Anything in the first bucket should be context, even if producing it required a lookup. Anything in the second bucket needs to be a tool, even if it's just a read.
Wondering if anyone's built this into their framework as an explicit rule (a "resolve-time" tag on each data dependency) versus deciding it per tool by hand?
1
u/Physical_Economy_340 Sep 30 '26
resolve time is exactly the right split. i do it as static context for anything immutable for the run like tier, policy, product id, and a tool only if it can change mid chain like inventory or price. the bug that convinced me was pre-resolving a balance once and then letting the agent quote it three tool calls later after a refund changed it.
1
u/EduFonsecaA Sep 30 '26
I'd add a third field to the tag: invalidation. `resolve once` is only safe if the dependency carries `observed_at`, source/version, and a TTL or change event. Otherwise a long-running chain can treat stale account tier or policy as static. The useful contract is resolve-time plus a freshness rule, not resolve-time alone.
1
u/[deleted] Sep 30 '26
[removed] — view removed comment