TRANSMISSION // 2611.31938v1

How CAPE helps AI agents make reliable tool calls

Source published

CAPE coordinates testing and policy search under one budget. Its abstract reports results on CSV and JSON workflow benchmarks, not a general guarantee for AI agents.

AI-generated conceptual illustration for How CAPE helps AI agents make reliable tool calls
AI-generated conceptual illustration; not documentary evidence.

A tool call can be logically correct and still fail if its format does not match the receiving tool’s configuration. CAPE is a proposed training-free approach for choosing which calls to test and using those results while building a tool-use policy.

An AI agent may send a correct operation in the wrong format. A tool might expect a particular delimiter, date style or record layout; in the scenario described by the authors, the agent cannot inspect the tool’s configuration. How can a system learn which calls work without spending its entire budget on testing before it improves its policy?

Jiahao Wang, Xiaoxuan Chen, Aijun Yang and Xiaohua Wang introduce CAPE, a training-free compiler that coordinates two activities: calibration, which evaluates candidate calls on candidate configurations, and search, which uses those evaluations to find a policy. The authors’ central idea is that a call becomes usable as soon as its effects are known on the configurations that can reach it. CAPE therefore maintains an executable policy throughout compilation and directs calibration toward calls that could improve that policy. The abstract also says it tightens bounds only where doing so ends calibration early.

According to the abstract, returned policies preserve every configuration completed by the initial policy. CAPE certifies optimality when its executable and optimistic values meet. The abstract does not explain the precise construction of those values, so this description should not be taken as a full account of the certification procedure.

The authors evaluated CAPE on CSV and JSON workflows built from 64 requests. Across 504 compilations, it reached an independently computed optimum in 502 and took 22.0% less compilation time than eager exact search. On larger CSV families, the abstract reports policies with higher completion at similar compilation time. It also reports completion improvements of 15.38 to 34.66 percentage points over an LLM that revises its serialization from error feedback.

These figures describe the evaluated tasks and comparisons. The supplied abstract does not give the benchmark setup or comparison conditions in enough detail to assess how broadly the results transfer. They should not be read as a general guarantee for tool-using agents.

CAPE addresses a practical trade-off: testing can reveal format requirements, but tests consume the same limited budget needed to find a useful policy. Its approach aims to make calibration and policy search progress together rather than completing all tests before improving the policy.

There are limits to what can be concluded from the available evidence. This account is based on the paper’s abstract, not its full methods, tables or appendices. The source is an arXiv preprint; the supplied material does not establish whether it has been peer reviewed. The abstract reports results for particular CSV and JSON workflows, but does not establish performance with other tool types, real-world workflows or different budgets.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.