TL;DR
While most general-purpose AI agents still navigate websites via brittle, token-heavy browsers, TheMCPCompany demonstrates that standardizing API tool access via Anthropic’s Model Context Protocol (MCP) dramatically cuts costs and improves performance. By scaling MCP to over 18,000 real-world enterprise tools (including Microsoft Azure), the authors show that dynamic tool retrieval beats browser-based agents—yet state-of-the-art models still experience a complete reasoning collapse when tackling multi-service cloud infrastructure debugging.
What Problem Does This Paper Address?
When autonomous agents interact with digital environments, they typically rely on general-purpose interfaces like web browsers or bash terminals. While flexible, browsers require agents to parse noisy HTML DOMs, resulting in excessive token consumption, high latency, and frequent execution failures.
Although APIs offer structured alternatives, existing tool-use benchmarks typically test fewer than a thousand tools and pre-select the relevant tool subsets for the agent. In real enterprise environments, an agent must navigate tens of thousands of heterogeneous endpoints—where the high-level user request (e.g., "fix my broken web app") shares zero lexical similarity with the underlying API call needed (e.g., DatabaseAccounts_Update).
This paper investigates whether agents can discover and orchestrate task-specific tools across massive libraries (18,000+ tools) and where modern LLMs fall short when managing enterprise workloads.
Methods
The authors introduce TheMCPCompany, an open benchmark built on top of TheAgentCompany, extended with real-world Microsoft Azure infrastructure:
- 18,505 Functional MCP Tools: REST APIs from GitLab, RocketChat, Plane, ownCloud, and Microsoft Azure were converted into MCP servers. The tools feature realistic complexity: an average of 5.5 arguments (some Azure tools requiring up to 39), nested schemas, and rigid inter-tool dependency chains.
- MCPAgent Architecture: Built on OpenHands' CodeAct, the agent does not receive all 18k tool definitions in its prompt. Instead, tool discovery is treated as an active tool call (
find_tools). The agent generates semantic queries, a dense retriever (e.g., OpenAItext-embedding-3-large) returns top-$k$ tool specifications, and the agent invokes them via a gateway (call_tool). - Evaluation Tiers:
- Browser Baseline: Uses standard text-browser interactions.
- Oracle Tool Set: The agent is directly supplied with the minimal ground-truth tools required for each task (isolating execution reasoning from retrieval).
- MCPAgent: Full end-to-end execution where the agent must discover tools dynamically across the 18k catalog.
Datasets
The evaluation comprises two main tracks:
- TheAgentCompany (Adapted): 175 enterprise tasks covering software engineering, internal messaging, project management, and file sharing—modified to work natively with MCP tools rather than web URLs.
- Azure Cloud Tasks (17 tasks): Managed on live Azure infrastructure provisioned via Terraform:
- 10 Primitive Tasks: Targeted operations measuring tool discovery and argument generation (e.g., tagging a resource, deleting a VM).
- 7 Composite Tasks: Complex, multi-service production workflows requiring diagnostic reasoning (e.g., fixing MongoDB-to-FastAPI protocol mismatches, migrating databases from connection strings to Entra ID/RBAC, configuring streaming event backups).
Key Insights and Ideas
- APIs Crush Browsers on Cost and Speed: Providing structured tools rather than a web browser cuts inference costs by 54% ($2.29 saved per task on average) and significantly reduces trajectory step counts by eliminating the need to parse raw HTML pages.
- The "Instruction Drift" Bottleneck: When analyzing why GPT-4.1 succeeded with oracle tools but failed with dynamic retrieval, search error was rarely the culprit. In 50% of failures, the agent retrieved the exact right tools but suffered instruction drift—the additional context tokens from retrieved tool schemas caused the model to disregard output formats or omit task sub-steps.
- Agentic Search Outperforms Static RAG: Using raw task prompts in a standard retrieval pipeline achieved a miserable 16.2 Recall@20. In contrast, agents breaking goals into iterative sub-queries and inspecting tool arguments on the fly achieved up to 69.7% recall with only ~15–26 tools fetched.
- The Cloud Reasoning Wall: While top reasoning models easily resolved primitive Azure tasks (9/10), they failed almost completely on composite tasks (1/7). When encountering failures, models fell into cargo-cult debugging—repeatedly toggling IAM credentials without inspecting container logs, or giving up on cloud deployment entirely to execute scripts on the local host.
Key Results
- TheAgentCompany Tasks (175 tasks):
- Oracle Tools: Improved performance by +13.79 points over the browser baseline across models. Reasoning models benefited the most; o3 jumped from 30.53 to 50.63 score.
- MCPAgent (Dynamic Retrieval): Maintained a +5.39 point lead over browser agents while saving $2.06 per task.
- Model Disparity: GPT-5 almost entirely closed the retrieval gap, achieving 52.32 with dynamic tool discovery vs. 54.45 with oracle tools. Conversely, smaller models degraded: GPT-5-mini scored lower with tool retrieval (32.11) than with a browser (33.36).
- Azure Tasks:
- Primitives: GPT-5, Sonnet 4, and Opus 4.1 scored 9/10; GPT-4.1 scored 5/10; GPT-5-mini scored 2/10.
- Composites: Sonnet 4, Opus 4.1, o3, and GPT-5 each solved only 1/7; GPT-4.1 and GPT-5-mini solved 0/7.
Limitations and Future Work
- High Blast Radius: Granting agents unrestricted access to real cloud APIs introduces serious operational risks; in one trial, GPT-5 inadvertently deleted a virtual machine. Safe production deployment necessitates human-in-the-loop permissioning.
- Retriever vs. Reasoner Decoupling: Swapping in larger embedding models (Qwen3-Embedding-4B) yielded marginal gains for GPT-4.1 but did not help GPT-5-mini, confirming that retrieval quality cannot compensate for downstream reasoning deficiencies.
- Benchmark Scope: The Azure composite set currently contains only 7 tasks. Future work needs to expand this suite to capture multi-subscription governance, automated disaster recovery, and real-time incident remediation.
Summary updated