An AI That Can Call Tools Is Not Yet an AI That Understands Consequences
Hatched by SEAN SYLVIA
Sep 08, 2026
10 min read
2 views
93%
What if the most dangerous illusion in tool using AI is not that it will hallucinate, but that it will act correctly for the wrong reason?
A modern assistant can inspect databases, read files, retrieve web pages, select a prompt template, write a query, execute it, and continue reasoning from the result. The machinery looks intelligent because it forms a visible loop: request, tool call, observation, next decision.
But a loop is not the same thing as understanding. The system may know what happened without knowing what caused it. It may select a prompt because its description resembles the user’s words, not because the prompt will produce a reliable decision. It may execute a perfectly valid query that answers a different question from the one the user actually needs answered.
This creates a deeper problem than ordinary hallucination. The assistant can be factually accurate at every step and still be causally wrong.
The missing distinction: seeing, doing, and imagining
Causal reasoning begins by separating three kinds of questions that are often treated as interchangeable.
The first is an observational question: what tends to occur together? For example, how many unique customers appeared in an ecommerce session table during May 2024?
The second is an interventional question: what would happen if we changed something? For example, what would happen to customer retention if we sent a discount to users who had not purchased in thirty days?
The third is a counterfactual question: what would have happened to this particular customer if we had taken another action? For example, would this customer have purchased if they had received the discount yesterday?
A database tool can often answer the first question. It cannot automatically answer the second or third merely because it has access to data. A language model can produce fluent language about all three. Fluency does not turn an association into an intervention.
This distinction matters because tool using assistants are built around action. They do not merely generate text. They retrieve resources, call functions, modify files, execute queries, and chain results into subsequent actions. As soon as an assistant can do something, the relevant standard changes. The question is no longer only, “Is the answer plausible?” It becomes, “What changed because of this action, and how do we know the change was attributable to it?”
The central unit of trustworthy AI is not the answer. It is the justified transition from one state of the world to another.
Consider a simple example. A user asks, “How many customers did we have in May?” A tool generates a query using a sessions table, counts unique user identifiers, and returns 246,852. That may be a useful descriptive answer. Yet even here, several causal assumptions hide beneath the surface: that a session represents a customer, that the identifier is stable, that the date field reflects the relevant month, and that the table is complete enough for the business definition of customer.
The query may be syntactically correct while the operational conclusion is wrong. If the user asks, “Did our May campaign bring in more customers?” then the same count is insufficient. It describes a month. It does not identify the effect of a campaign. A tool call has occurred, but the user’s causal question remains unanswered.
Why tool loops resemble causal experiments
The architecture of a tool using assistant has an unexpected resemblance to causal inference. It begins with a state of information, selects an action, observes a result, and updates its next action. This is structurally similar to an experiment, but with one crucial difference: an experiment changes the world under controlled conditions, while a tool loop often changes only the assistant’s information.
Suppose an assistant discovers three capabilities: a filesystem tool, a web retrieval tool, and an analytics tool. It maps each capability to a session, exposes descriptions and input schemas to the model, and lets the model choose among them. This is a powerful form of capability discovery. The model no longer needs a separate integration for every external service. It can inspect a common interface and decide which operation to invoke.
Yet discovering an available action does not establish its consequences. A filesystem tool might read a report, overwrite a report, or expose sensitive data depending on its arguments. A web retrieval tool might return a current page, a cached page, or an adversarial page containing instructions aimed at the assistant. An analytics tool might calculate a metric whose definition differs from the user’s business meaning.
In causal terms, the tool schema tells the model what action is permitted. It does not tell the model what variables that action changes, which assumptions connect input to outcome, or how to detect unintended effects.
This suggests a useful mental model: treat every tool as a small causal mechanism, not merely as a function.
For each tool, ask five questions:
- What state does the tool observe?
- What state does it change, if any?
- Which variables mediate the effect?
- What could produce a misleading result?
- What evidence would verify success?
A read only database query has no intended external side effect, but it can still alter a decision. A file writing tool has a direct side effect and therefore needs stronger safeguards. A prompt template has no obvious physical effect, but it changes the model’s interpretation of the user’s request. That interpretive effect can be just as important as a database update when the resulting answer drives a business action.
Prompt selection is a causal decision, not a relevance contest
Automatic prompt selection appears straightforward. Compare the user’s query with every available prompt, ask a model to assign each a relevance score from zero to five, filter out low scores, and use the highest scoring template.
This is convenient, but it quietly defines the wrong objective. The system is optimizing for semantic fit, not for improved outcomes.
A prompt called “Create a SQL query” will probably receive a high score for the question, “How many customers did we have in May?” That is sensible. But the real test is not whether the prompt sounds relevant. The real test is whether using it produces a more accurate, more complete, and more appropriate result than the alternatives.
This is the difference between a predictor of relevance and an estimator of treatment effect.
Imagine two prompt templates:
- Template A produces a quick metric from the sessions table.
- Template B first clarifies the business definition of a customer, checks available tables, states assumptions, and then writes the query.
For a short user question, Template A may receive the higher similarity score because it looks direct. Template B may be less lexically similar but far more valuable. It prevents a category error before any SQL is executed.
The prompt is functioning like a treatment. Selecting it changes the assistant’s behavior. Therefore, the relevant quantity is not simply:
How similar is this prompt to the request?
It is closer to:
How much better will the user’s outcome be if this prompt is used rather than a reasonable alternative?
That is a causal question. It requires a baseline, an outcome definition, and some method of comparison.
A practical approximation is to give every prompt a task contract with four fields:
- Input conditions: what kind of request the prompt expects.
- Transformation: what reasoning or tool sequence it imposes.
- Output guarantee: what the result should contain.
- Failure modes: when the prompt should not be used.
The selection process can then evaluate not only topic alignment but also whether the template adds a necessary procedure. A prompt should earn preference because it changes the quality of the work, not merely because its description shares words with the query.
The hidden variable in every agent interaction
Causal analysis often fails because an important variable is unobserved. In tool using systems, the hidden variable is frequently the user’s actual objective.
The sentence “How many customers did we have in May?” may mean at least four different things:
- Give me a descriptive count for a dashboard.
- Help me reconcile a discrepancy with finance.
- Tell me whether May performance was unusually strong.
- Estimate whether a May campaign caused customer growth.
The literal query does not reveal which objective is present. A relevance scoring system may confidently select a template while remaining uncertain about the thing that matters most.
The solution is not to ask endless clarifying questions. It is to identify when ambiguity changes the appropriate action. This can be expressed as an ambiguity threshold:
- If competing interpretations lead to the same safe action, proceed.
- If they lead to different queries, tools, or decisions, ask one targeted question.
- If the action has irreversible consequences, require explicit confirmation and a verification plan.
For example, an assistant can safely retrieve a list of available databases without clarification. It should not delete files, send a customer communication, or publish a metric without establishing the intended scope and success condition.
This creates a hierarchy of autonomy based on consequence, not on technical difficulty. A complex read query may be low risk. A simple write operation may be high risk. The model’s confidence should therefore be combined with the reversibility and impact of the action.
From tool calling to accountable action
A reliable assistant needs more than a loop that continues until no tool call remains. It needs a loop that records the causal story of its own work.
A useful structure is the SAGE loop:
State
Describe what is currently known, including the source, time range, definitions, and uncertainty.
Action
State what the assistant is about to do and why this tool is appropriate.
Grounding
Connect the expected result to the user’s objective. Explain what the action can establish and what it cannot establish.
Evaluation
Inspect the result for consistency, completeness, and unintended effects. Decide whether the next action is justified.
In code, this does not require a philosophical rewrite. Before a tool call, the assistant can maintain a compact record containing the intended action, expected observation, relevant assumptions, and risk level. After the call, it can compare the actual result with the expectation.
For a customer count, the evaluation might check:
- Did the query return one value or multiple unexpected groups?
- Is the date range aligned with the user’s wording?
- Are null or duplicate identifiers present?
- Does the result differ sharply from adjacent months?
- Is the metric descriptive, or is the user treating it as evidence of an effect?
This is not bureaucracy. It is the difference between a tool result and a defensible conclusion.
The same principle applies to prompt composition. When a template is merged with a user query, the assistant should preserve an explicit boundary between the user’s request and the template’s instructions. It should also report which assumptions were inserted. Otherwise, the combination process can silently transform the request while making the final prompt appear coherent.
Key Takeaways
-
Separate observation from intervention. A query can tell you what happened without telling you what caused it. Label descriptive results accordingly.
-
Treat prompts as interventions. Selecting a template changes the assistant’s behavior. Evaluate templates by the improvement they create, not only by semantic relevance.
-
Give tools causal contracts. Document what each tool observes, changes, assumes, and how its success will be verified.
-
Ask clarifying questions only when they change the action. Ambiguity matters when different interpretations lead to different tools, queries, or consequences.
-
Add a verification stage to every consequential loop. After execution, compare the result with the expected outcome and check for definition errors, missing data, and unintended side effects.
The next generation of assistants will not be distinguished merely by having more tools. Tool access is becoming standardized, and capability discovery is becoming easier. The harder problem is knowing when an available action is appropriate, what it can prove, and what changed because it was taken.
That is why causal reasoning belongs inside agent design. It supplies a discipline for moving from language to action without confusing confidence for evidence. It teaches the assistant to distinguish a measured outcome from an explanation, a relevant prompt from an effective one, and a successful function call from a successful intervention.
The deepest shift is conceptual: an intelligent assistant should not be judged by how smoothly it moves through a chain of calls. It should be judged by whether it can make the chain intelligible.
A system that can say, “Here is what I observed, here is what I changed, here is what I expected, and here is why the result supports the conclusion,” is doing more than answering questions. It is beginning to understand consequences.
Sources
Hatch New Ideas with Glasp AI 🐣
Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)
Start Hatching 🐣