arXiv(opens in a new tab)cs.SESep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.35381

MCP Error Messages Written for Developers Hurt the Most Capable Agents Most

Xiaonan Xu, Wenjing Wu

Abstract

Many Model Context Protocol (MCP) servers wrap web APIs built for human developers, and their error messages tell the reader to run a command, edit a configuration, open a web page or wait. Many agents that read them can only call the server's tools. In 150 widely used MCP servers, 949 of 3,001 error messages tell the caller what to do next, and half of these steps depend on something the server cannot see about the caller. On credential errors, 62 of 67 steps ask for a terminal command, a configuration change or a web page; on rate limits, 20 of 30 say to wait and retry without naming the call to repeat. We tested five OpenAI models that act only through the tools of Berkeley Function Calling Leaderboard tasks, and the agents did what the step said. On expired credentials, a terminal command in the step left 45% of tasks recovered, and the loss it caused grew from 18 points for GPT-5.5 to 69 for GPT-6 Astra. On a rate limit, GitHub's Wait before retrying. left 6%. We tested two remedies. For MCP developers, naming a server tool in the step raised recovery on expired credentials to 84%, with the login tool in place of the command, and on a rate limit to 88%, with the call to repeat in place of the bare wait. For agent developers, deleting the step with a one-sentence prompt before the model reads it raised recovery on expired credentials to 82%.

Keywords: Language-model agents, Tool calling, Error messages, Model Context Protocol, API design, Controlled experiment

*Corresponding author.

Email addresses: xiaonanxu5@gmail.com (Xiaonan Xu), wuwenjing256@gmail.com (Wenjing Wu)

1. Introduction

Web APIs were built for human developers, and their error messages are written for a reader who can act outside the failed call: open a terminal, edit a configuration file, sign in on a web page or wait a minute before trying again. Please run: reddit-mcp-buddy --auth assumes a terminal, and Wait before retrying. assumes a reader who can wait and then call again. The Model Context Protocol (MCP) puts a language-model agent in the reader's place. Many MCP servers are thin wrappers of such APIs. Of 116 official servers, 88.6% are backed fully or partly by REST APIs, and 92% implement their tools as bare API wrappers [18].

An agent does not always have the developer’s means. A coding agent in a terminal can run commands and wait between calls, but a chat application with MCP connectors, or an agent framework that gives its model only tool calls, can do nothing except call the tools of the connected servers. The server receives the same request from all of these callers and cannot tell which one it is answering. A step that is right for a developer is then out of reach for many of the agents that read it, and the one kind of step every caller can carry out is a call to one of the server’s own tools.

The official guidance does not address this difference. The MCP specification describes errors in tool execution as feedback that lets the model correct itself and retry [14], and Anthropic’s guide for tool authors recommends error responses that state specific, actionable improvements [4]. Neither says who can act on the improvement, or reports how much a suggested step helps an agent recover. The newest models make the question more pressing. OpenAI and Anthropic report that GPT-6 Astra and Claude Fable 5 weigh written instructions more heavily than their predecessors, so that guidance written for earlier models can over-constrain them [17, 2].

We first measure how much MCP error text is written for a developer reader, in the source code of 150 widely used servers (Section 3). We then measure what agents that act only through MCP tools do with that text. Each scenario replays a task from the Berkeley Function Calling Leaderboard (BFCL) [7] up to a tool call, makes the call fail, and continues from the same saved state with different error texts, and the BFCL state check decides whether the turn was completed. Last, we test two remedies, one for each side of the connection: the MCP developer can rewrite the step as a call to a server tool, and the agent developer, who cannot change third-party servers, can remove the step before the model reads it.

Half of the next steps in the surveyed error text depend on something the server cannot see about the caller, and on credential errors nearly every step asks for a terminal command, a configuration change or a web page. The agents did what these steps said. When the step asked for something outside their tools, most of them ended the turn, although their own tools could have made the repair, and the more capable the model, the more often it stopped, which is consistent with how OpenAI and Anthropic describe their newest models (Section 6). On expired credentials, a terminal command in the step left 45% of tasks recovered; naming the login tool in its place raised this to 84%, and deleting the step with a one-sentence prompt raised it to 82%. On a rate limit, naming the call to repeat in place of Wait before retrying. raised recovery from 6% to 88%, at about one extra tool call. The paper contributes the survey, the controlled comparison across five models, the two remedies with their measured effect, and the public scenarios, data and code.

References (17)