Tree News

Mira · 2026-12-02 15:30 UTC

The Tool Call Problem in AI inference. An AI agent asks an inference provider to call a function. The API responds successfully. The model even selects the right tool. But when the application tries to execute the call, it fails. Consider an agent helping a customer retrieve an invoice. The application exposes a function called lookup_invoice, which requires an invoice_id argument. The expected call is: Instead, the endpoint returns: The model identified the correct function. It understood the task well enough to extract the invoice number. The API request completed without an HTTP error. But the returned arguments don't match the function's declared schema. The application cannot reliably execute the call as intended. This illustrates an important distinction in AI inference: an endpoint can successfully generate a response without successfully fulfilling the tool-calling contract your application depends on. And when the same model is served through multiple inference providers, that contract deserves its own verification. Tool calling introduces a different kind of reliability problem For a conventional chatbot, an imperfect response may produce an unsatisfactory answer. For an AI agent, a response can become an instruction to external software. A model might retrieve customer records, query a database, update a CRM, or initiate an operation through a function exposed by the application. Tool calling makes these workflows possible by allowing the model to return structured requests for an application to execute. But there are several steps between deciding to use a tool and successfully completing the operation. The model must select an appropriate function, return the expected structure, supply valid arguments, and preserve the information needed by the application. A failure at any of these points can interrupt the workflow. This is why request success rates and model benchmarks don't tell developers everything they need to know about tool-use reliability. An endpoint can be available, respond quickly, and generate useful text while failing to provide usable tool calls under certain conditions. The same model can behave differently across providers When developers select a model through an inference API, they're also depending on the system serving it. That system includes more than the underlying model weights. The provider's inference engine, tool-call parsing, API implementation, and serving configuration can influence how model outputs are exposed to the application. This matters particularly for open-weight models distributed across multiple hosting providers. Two endpoints may advertise the same model, but their implementations can differ in how they handle structured tool responses. For example, one endpoint might consistently return tool arguments in the expected format while another encounters parsing or schema-compliance failures. The underlying issue isn't necessarily that the second provider is serving a different model. It could be an implementation problem within the serving stack. We've seen why this distinction matters in practice. In October 2025, the vLLM team published an investigation into Kimi K2 tool-calling accuracy. The investigation identified implementation issues affecting tool-call parsing and reported significant improvements after fixes to the serving setup and tokenizer configuration. The lesson is broader than any particular model or provider: tool-calling reliability is partly a property of the system serving the model, not merely the model's advertised capabilities. That creates a problem for developers evaluating inference providers. Knowing that a model supports tool calling doesn't establish that every endpoint serving it will handle tool calls equally well. What should a tool-call evaluation actually measure? Tool calling is often treated as a binary capability: supported or unsupported. That distinction is too coarse for applications that depend on tools to complete workflows. A more useful evaluation separates three questions. 1. Did the model choose the appropriate tool? The first question is whether a tool should have been called at all. Given a user request and a set of available tools, does the model select an appropriate function? Does it avoid calling a tool when the task doesn't require one? A system that generates syntactically valid tool calls can still behave incorrectly if it chooses the wrong function. 2. Are the arguments usable? Once the model selects a tool, the returned arguments need to match the function's declared interface. That means checking whether the response is parseable, required fields are present, types are correct, and the arguments conform to the applicable schema. An omitted required field or incorrectly typed value can prevent execution even when the tool name is correct. 3. Does the call reflect the user's actual intent? Schema validity is necessary, but it isn't the same as semantic correctness. An agent could generate a perfectly valid issue_refund call with an amount that differs from what the user requested. The schema might accept the value. The payment API might execute it. That doesn't make the action correct. This distinction is especially important for tools that modify external state. Applications still need authorization checks, input validation, confirmation rules, and safeguards against unintended or repeated actions. A tool-call evaluation can provide evidence about a model's ability to produce expected tool behavior. It should not automatically be interpreted as proof that every downstream action will be correct or safe. Why model identity testing isn't sufficient Model identity and tool-call behavior answer different questions. Model identity testing asks whether an endpoint's observed outputs are statistically consistent with a reference for the model it claims to serve. Tool-call testing asks whether that endpoint demonstrates the expected tool-use behavior under defined tests. These are related, but neither substitutes for the other. An endpoint could produce outputs consistent with the expected model while mishandling structured tool responses. Conversely, an endpoint could produce valid tool calls without its broader behavior matching the expected reference model. For developers building agents, both signals matter. The first helps establish confidence in the model behavior being served. The second helps establish confidence that the application can interact with it through the tool interface. Neither, by itself, establishes that a complete multi-step agent workflow will succeed. How Sterling evaluates tool-call behavior Sterling, powered by Mira Network, approaches inference reliability at the provider-model level. Rather than relying exclusively on a model's published capabilities or a provider's API availability, Mira evaluates supported endpoints across five dimensions: Model identity Tool-call behavior Parameter compliance Silent failures Declared context support Tool Call Check is the second dimension of this verification suite. It evaluates expected tool-use behavior for the tested model-provider combination, separately from whether the endpoint appears to serve the expected model. That separation matters because tool-call failures may not be visible through conventional availability monitoring. Sterling publishes verification results for supported model-provider combinations, allowing developers to inspect individual checks and historical outcomes instead of relying solely on an overall provider score. Those verification results also inform how Sterling prioritizes providers for inference routing. The goal is not to promise that every future tool call will succeed. It's to make observable provider behavior part of the evidence developers use when deciding which endpoints to trust with their workloads. What developers should test before switching providers Provider-level verification is a starting point, not a replacement for application testing. Before migrating an agent from one endpoint to another, developers should keep a small set of representative tool-use cases from their actual application. Run the same cases against both endpoints using equivalent tool definitions and request settings. Compare whether the model selects the expected function, whether its arguments conform to the schema, and whether the resulting actions complete successfully in a controlled environment. Where streaming matters, test the reconstruction of streamed tool arguments too. A useful test should include more than successful cases. It should also examine situations where the model needs to choose between multiple tools, return no tool call, or handle invalid and incomplete information. Repeat those tests rather than treating a single successful response as proof of reliability. Then use Sterling's provider-level results as an additional signal: which endpoints have been tested, which checks passed, which were flagged, and how those observations have changed over time. This gives developers two complementary sources of evidence. Sterling provides external verification of supported inference endpoints. Application evaluations show whether those endpoints can reliably complete the specific tasks a developer cares about. The next question in reliable inference Model capability has advanced to the point where developers increasingly expect language models to do more than generate answers. They expect them to interact with software. That raises the standard for the infrastructure serving those models. A reliable inference endpoint must do more than return a successful HTTP response. It needs to preserve the behaviors and interfaces the application depends on. Model identity is one part of that requirement. Tool-call behavior is another. By testing both independently, Sterling helps developers look beyond whether an endpoint is available and examine whether it behaves as expected. Explore Sterling's public provider-verification results, including Tool Call Check, at sterling.mira.network/verification.

Loading the story on Tree News…