MCP工具调用成功却工作流失败:Agent-Tool边界的八类外部效应异常
When Tool Calls Succeed but Workflows Fail: Anomalies at the Agent-Tool Boundary
研究提出效应历史模型,将外部世界事件与运行时观测分离,并归纳出8类可复现的外部效应异常,据此推导排除每类异常所需的边界能力,并指出黑盒工具调用无法提供通用保证的4个环节。对官方MCP注册表中98,291个工具的分析显示,标准标注字段虽被广泛输出,但仅提供粗粒度的调用级提示,所需能力均无法完整表达。
arXiv:2609.15397v2 Announce Type: replace Abstract: AI agents increasingly execute long-running workflows that externalize effects through independently supplied tools. Under retries, speculative execution, concurrency, and partial failures, the resulting external state may be inconsistent with the workflow's intended resolution: required effects may be missing or duplicated, aborted effects may survive, and committed effects may depend on provisional state that is later withdrawn. Advanced transaction models address related failures, but assume that lower-level operations expose the semantics they depend on: whether an effect occurred, whether it can be compensated, staged, or safely reordered. Shared agent-tool interfaces usually do not. We contribute an effect-history model that separates events in the external world from the runtime's observations of them, and a catalog of eight recurring external-effect anomalies. From the catalog we derive the boundary capabilities required to exclude each anomaly in general, and four points where black-box tool invocation alone cannot provide a general guarantee. We then ask how much of this is expressible in a widely used shared tool interface, measuring the use of the standard annotation vocabulary across 98,291 tools exposed by reachable remote servers in the official Model Context Protocol (MCP) registry. The fields are widely emitted but provide only coarse call-level hints, and none of the required capabilities is fully expressible. These results motivate reusable transactional contracts at the tool boundary.
来源:arXiv (AI + Vision + Imaging) · arxiv.org