October 26, 2026
Autonomous Cloud Orchestration with AI Agents: Competency Assessment via MCP
Marcelo Ifa Vancini; Elaine Barbosa de Figueiredo
DOI: 10.22167/2675-6528-202601166
Article prepared by the ResumeAI tool, an artificial intelligence solution developed by the Pecege Institute focused on synthesis and writing.
Summary
The evolution of artificial intelligence agents for complex systems demanded standardized interoperability protocols. The operational effectiveness of large language models (LLMs) integrated with the Model Context Protocol (MCP) in managing infrastructures in public cloud providers was evaluated. A controlled experimental environment was structured, where sixteen representative administration tasks were executed in triplicate by the Claude Haiku 4.5 and Claude Sonnet 4.5 models. Success rate, processing time, number of interaction steps, and computational credit consumption were measured. Tests recorded success in all operational executions. The Haiku 4.5 model showed greater temporal efficiency and financial cost in resolving routine activities. In turn, the Sonnet 4.5 model stood out for its semantic inference capability in ambiguous contexts; however, its larger context window increased processing time in exhaustive tasks. The analyzed architecture demonstrated technical feasibility for process automation, proving that smaller-scale models can operate with high efficiency in restricted contexts. It was emphasized that the results reflect a laboratory scenario, indicating the need for containment protocols for the transition of this technology to production environments, due to the inherent probabilistic nature of generative models.
Keywords: Infrastructure automation; Interoperability; Model Context Protocol; Generative models.
1. Introduction
Artificial Intelligence (AI) has profoundly transformed the technological landscape, with large language models (LLMs) accelerating the evolution towards more sophisticated and autonomous systems (Krishnan, 2025).
At the core of this evolution are AI agents, defined as systems that interact with an environment iteratively, executing actions and receiving feedback to achieve their goals (Kumar et al., 2025). These agents have transcended the role of mere assistive tools, being capable of performing complex end-to-end tasks such as searching files, modifying code, and executing commands. Their integration aims to reduce operational costs and increase reliability in critical workflows through the automation of manual processes (Clear et al., 2024; Kumar et al., 2025).
The conceptual distinction between autonomous agents and agent flows deepened the understanding of this operational dynamic (Stratis, 2026). While traditional workflows used predefined logical paths, agents delegated decision-making directly to language models. In this new paradigm, the model operates in an iterative cycle of action and feedback, analyzing the environment, selecting tools, and evaluating results before finalizing the task (Stratis, 2026).
However, multi-agent architectures have exposed the inadequacy of traditional, mostly stateless protocols for maintaining contextual continuity (Ray, 2025; Krishnan, 2025). To address this challenge, interoperability protocols targeting different communication layers have emerged, such as IBM’s “Agent Communication Protocol” (ACP), Google’s “Agent-to-Agent Protocol” (A2A), and the “Agent Network Protocol” (ANP) (Ehtesham et al., 2025; Li, Q.; Xie, Y. 2025).
In terms of technical implementation, the development of these architectures historically encountered the so-called “M x N problem”, a scenario where the integration of multiple language models (M) with various tools or data sources (N) required the creation of individual connectors for each combination (Stratis, 2026). This multiplicative requirement generated code redundancy and increased the probability of systemic failures that were difficult to diagnose, highlighting the need for a standardized interface that would transform the integration effort into a strictly additive relationship (M + N) (Stratis, 2026).
Among the alternatives, the “Model Context Protocol” (MCP) stood out for its JSON-RPC client-server interface, specifically designed for secure context ingestion and structured tool invocation (Anthropic, 2024; Ehtesham et al., 2025). By providing a universal, model-agnostic interface, the MCP aimed to mitigate the fragmentation of custom integrations (Ehtesham et al., 2025; Hou et al., 2025). The consolidation of this standard occurred in December 2025 with its donation to the Linux Foundation to integrate the “Agentic AI Foundation” (AAIF), ensuring neutral governance and vendor neutrality (Anthropic, 2025; Linux Foundation, 2025).
Although the MCP server ecosystem has grown rapidly, there is still a scarcity of empirical and controlled evidence regarding its effectiveness in complex domains, such as cloud management (Hou et al., 2025; Ray, 2025). Such environments demand high reliability and security, making them ideal for testing the protocol’s autonomous orchestration capability. The investigation into whether MCP can elevate operational autonomy in real-world infrastructures justifies the present research. Thus, the objective of this work is to evaluate the competence and effectiveness of AI agents, structured with MCP, for the autonomous management of cloud infrastructures, based on the hypothesis that advanced models, integrated via MCP, will exhibit greater success and less human dependence in complex tasks (Kumar et al., 2025).
2. Material and Methods
This work was characterized as a research of an applied nature, with a quali-quantitative approach, carried out through an experimental case study. The methodology aimed to evaluate the performance of Artificial Intelligence agents in a controlled environment, manipulating specific variables to observe and measure competence in task execution (Kumar et al., 2025).
The study was conducted in an isolated cloud environment on a public cloud service provider, located in the São Paulo, SP region. The experimental infrastructure was operated on the Ubuntu operating system, using Python as the interpreter for the Model Context Protocol (MCP) servers. The exact versions of all software and libraries used, as well as the local environment configuration files, are described in Appendix A of the original TCC.
The orchestration of the agents was performed using the kiro-cli tool (AWS, 2026), configured to operate natively with the MCP. The official MCP server of the cloud provider awslabs.aws-api-mcp-server (AWS Labs, 2026) was exclusively chosen. This choice was strategic for methodological rigor, aiming to minimize errors arising from third-party development or unapproved libraries.
For the tests, two large language model (LLM) models were alternated: Claude Haiku 4.5 and Claude 4.5 Sonnet. The tool layer and communication protocol were kept unchanged during the evaluations. An efficiency benchmark was established between the evaluated models based on the computational credits consumed, where Claude Haiku 4.5 used 0.4 credits and Claude 4.5 Sonnet consumed 1.4 credits per unit.
The experiment consisted of submitting sixteen distinct tasks, distributed into four categories: Provisioning, Management, Monitoring, and Security. Each task was executed in triplicate (n=3), totaling forty-eight iterations per agent. A task was considered successful when it achieved success in at least two of the three executions, following the simple majority rule.
To ensure the scientific integrity and reproducibility of the tests, a rigorous isolation procedure was adopted between experimental rounds. This procedure included the systematic restoration of all resources provisioned in the test account at the end of each sample, guaranteeing identical initial conditions. Additionally, the conversation history of the orchestration tool was completely removed with each new task, avoiding data contamination and influence from past interactions.
A layer of functional prerequisites was established, configuring access policies based on the principle of least privilege. This ensured that the agent possessed only the granular permissions strictly necessary for the execution of the planned scope. Failures arising from permission configuration errors were treated as infrastructure failures and corrected prior to the definitive data collection.
To measure the competence and influence of prompt quality, the following variables were recorded: Autonomy Level, which counted the number of human interventions needed to correct reasoning deviations; Credit Volume and Cost Analysis, to estimate operational financial cost; Success Rate and Stability Index (SI), to evaluate the proportion of positive conclusions and consistency between attempts; Failure Taxonomy, to categorize failures into reasoning error, tool error, or security lockout; and Efficiency, which measured the total execution time.
The Temporal Efficiency metric (runtime) exclusively accounted for the interval between the initial prompt submission to the orchestrator and the task completion confirmation by the agent. The time demanded for the preparation steps, specifically the cleaning process and the provisioning of prerequisite scenarios, was not computed in the performance results.
Such exclusion is justified by the fact that these steps constitute static infrastructure activities, external to the processing and orchestration capacity of the evaluated language model. Thus, the study was limited to the analysis of the agent’s reasoning and execution latency. Regarding practical application, the results obtained reflect a controlled testing environment, based exclusively on the services of only one cloud provider and the use of an official MCP server.
For this reason, the documented performance and metrics cannot be directly transferred to other cloud providers or to unofficial implementations of the protocol. The data were collected via direct observation and export of execution logs to Microsoft Excel. Data analysis was performed using descriptive statistics, and the choice of Excel aimed to ensure compliance with institutional standards for native integration with the MS Word word processor.
3. Results and Discussion
The evaluation of the competence and effectiveness of Artificial Intelligence agents, structured with the Model Context Protocol (MCP), for the autonomous management of cloud infrastructures, revealed significant findings. The experimental tests, which involved the execution of sixteen representative administration tasks in triplicate by the Claude Haiku 4.5 and Claude Sonnet 4.5 models, recorded a one hundred percent success rate in all operational executions for both models. This result demonstrated the technical feasibility of the proposed architecture and validated the central hypothesis that autonomous agents, when integrated via MCP, can achieve high precision in executing complex technical operations in cloud environments.
The consistency observed in the success rate was directly reflected in the Stability Index (SI), which reached its maximum consistency across all experimental triplicates, without presenting variations between trials. The absence of failures classifiable by the failure taxonomy, as predicted in the methodology, reinforces the robustness of the architecture in a controlled environment. However, it is essential to emphasize that this exceptional performance was obtained under strict laboratory control conditions and with delimited tasks, which suggests the need for caution when projecting the same performance for production environments, where operational constraints and failures can be more frequent and unpredictable.
Regarding temporal performance, a significant variation was observed between the models, directly influenced by task complexity. The Claude Haiku 4.5 model, on average globally, presented lower execution times compared to Sonnet 4.5, particularly standing out in tasks that demanded intensive data analysis. For example, in Scenario 1, an S3 bucket provisioning task, Haiku 4.5 completed execution in an average of 9.33 seconds, while Sonnet 4.5 took 10.00 seconds. This difference became more pronounced in more complex scenarios, evidencing the temporal efficiency of the smaller-scale model in routine activities.
A notable behavior occurred in Test 12, which involved the analysis of CloudTrail logs. In this scenario, the Sonnet 4.5 model, despite its greater reasoning capability and expanded context window, recorded an average time of 447.33 seconds, with a standard deviation of 176.69 seconds, significantly higher than Haiku 4.5’s 26.33 seconds. This disparity resulted from an exhaustive investigation strategy adopted by Sonnet 4.5, which attempted to retrieve a substantially larger volume of historical data in a single query. Although semantically more robust, this approach encountered the latency limitations of the cloud infrastructure, which imposed high lag times for the transfer and pagination of large volumes of records.
In contrast, the Haiku 4.5 model employed a more pragmatic approach in Test 12, requesting smaller batches of information, which allowed it to bypass API traffic bottlenecks and resulted in faster execution. This finding is crucial, as it highlights that, in infrastructure orchestration, the model’s capacity can become a bottleneck if it is not aligned with the limitations of the external environment. The expressive fluctuation in the Sonnet 4.5 runtime in Scenario 12, despite maintaining stability in costs and interactions, underscores an architectural characteristic of the more robust model: the tendency to request and analyze the entirety of available data, rather than settling for sample cutouts.
Despite the temporal limitations observed in intensive analysis tasks, the Sonnet 4.5 model’s greater reasoning capacity proved to be decisive in tasks requiring semantic inference and ambiguity resolution. In Test 7, which consisted of lifecycle policy management, Sonnet 4.5 demonstrated superior synthesis capability, executing the activity with a reduced number of steps and identifying the target resource by deducing its purpose solely from the analysis of its nomenclature. The average runtime for Sonnet 4.5 in this scenario was 32.00 seconds, with an average credit of 0.3667, while Haiku 4.5 took 20.67 seconds and consumed 0.0767 credits, but with two interactions.
In contrast, the Haiku 4.5 model did not achieve full success in its first interaction on the same task of Test 7, as it presented difficulty in performing this semantic correlation without explicit instructions. This behavior highlights that, although smaller models like Haiku 4.5 are highly efficient and economical for executing direct commands and well-defined tasks, the use of more advanced models like Sonnet 4.5 is widely justified when resource orchestration demands in-depth interpretation of context and autonomous decision-making in the face of imperfect or ambiguous scenarios. Sonnet 4.5’s semantic inference capability, even with higher cost and time, is a differential for the robustness of automation in complex contexts.
Regarding economic efficiency, the analysis of consumed credits revealed a consistent disparity between the evaluated models. The consolidated data indicated that the Sonnet 4.5 model demanded a significantly higher expenditure of resources to achieve the same orchestration objectives. The average cost per task for Sonnet 4.5 was approximately three times higher than that of Haiku 4.5. For instance, in Scenario 1, Haiku 4.5 consumed an average of 0.0367 credits, while Sonnet 4.5 consumed 0.1167 credits. This finding points to a favorable cost-benefit relationship for the smaller parameter model in infrastructure automation routines, as the final effectiveness in manipulating cloud resources remained unchanged, regardless of the computational investment made.
The analysis of the standard deviation of the evaluated metrics confirmed a high degree of logical and financial predictability in task execution. The interactions variable, for example, maintained a standard deviation equal to zero in almost all scenarios for both models, with the exception of some specific cases such as Scenario 8 for Haiku 4.5 (1.1547) and Scenario 12 for Sonnet 4.5 (0.5774). This statistical data shows that the agents traced consistent and repeatable paths, executing the exact same amount of steps in the experimental triplicates, which is an indicator of operational stability. Credit consumption also showed minimal statistical variations, attesting to the stability of the architecture’s operational costs.
In contrast, the time metric showed strong variability, especially with the Sonnet 4.5 model in Scenario 12, which recorded a standard deviation of 176.69 seconds. This fluctuation, even with the stability of costs and interactions, reinforces the characteristic of the more robust model to analyze the entirety of available data, rather than sample cutouts, which can lead to latency peaks in environments with infrastructure bottlenecks. The average time for Haiku 4.5 in Scenario 12 was 26.33 seconds with a standard deviation of 24.91 seconds, while Sonnet 4.5 recorded 447.33 seconds with a standard deviation of 176.69 seconds, illustrating the difference in approach and its impacts.
The interpretation of the findings requires recognition of the methodological limitations inherent in the experimental nature of the research. Strict laboratory control, while essential for the reproducibility of results, restricts the absolute generalization of the data. Validation occurred on a single cloud provider and through requests written with precise syntax and spelling, semantic coherence, and a delimited technical scope. In real, unstructured operations, characterized by imperfect commands and multi-provider architectures, the probabilistic nature of language models may introduce complexities capable of altering the success rates and predictability documented here, requiring containment protocols for the transition of this technology to production environments.
In summary, the results demonstrate that the integration between Large Language Models (LLMs) and the Model Context Protocol (MCP) offers a viable and competent architecture for cloud infrastructure orchestration, achieving a one hundred percent success rate in the tested tasks. It was found that smaller-scale models, such as Claude Haiku 4.5, can operate with high temporal efficiency and cost-effectiveness in restricted contexts and routine tasks. On the other hand, more robust models, such as Claude Sonnet 4.5, stand out for their semantic inference capability in ambiguous scenarios, albeit with higher resource consumption and processing time in exhaustive tasks. These findings validate the operational effectiveness of the MCP and AI agents, while also highlighting the importance of considering the environment’s limitations and the probabilistic nature of generative models in the transition to production environments.
4. Conclusion
This study sought to evaluate the competence and effectiveness of artificial intelligence agents, structured with the Model Context Protocol (MCP), for the autonomous management of cloud infrastructures. A one hundred percent success rate was observed in all operational executions performed by the Claude Haiku 4.5 and Claude Sonnet 4.5 models, demonstrating the technical viability of the proposed architecture for process automation. It was observed that the Haiku 4.5 model presented greater temporal efficiency and financial cost in resolving routine activities, while Sonnet 4.5 stood out for its semantic inference capability in ambiguous contexts, despite its longer processing time in exhaustive tasks due to its tendency to analyze larger volumes of data. These findings prove that smaller-scale models can operate with high efficiency in restricted contexts, and that more robust models are crucial for in-depth context interpretation and autonomous decision-making in complex or imperfect scenarios.
However, the interpretation of the results requires acknowledging that the exceptional performance was achieved in a strictly controlled laboratory environment, with delimited tasks and a single cloud provider, which restricts absolute generalization to production environments. The inherent probabilistic nature of generative models demands containment protocols for their transition to real operational scenarios. As a suggestion for future studies, it is recommended to evaluate this architecture in hybrid cloud environments or with multiple providers, in order to investigate new latency and interoperability variables. Additionally, research on the behavior of these agents in scenarios of intentional infrastructure failures and the use of open-source language models operated locally would contribute to the validation and advancement of this technology, consolidating the shift in the role of the cloud engineer to an architect and auditor of autonomous systems.
Bibliographic References
Anthropic. 2024. What is the Model Context Protocol (MCP)? Disponível em: https://modelcontextprotocol.io/docs/getting-started/intro. Acesso em: 29 out. 2025.
AWS Labs. aws-api-mcp-server. Versão 1.3.8. GitHub, 2025. Disponível em: https://awslabs.github.io/mcp/servers/aws-api-mcp-server. Acesso em: 10 fev. 2026.
AWS. kiro-cli. Versão 1.25.0. GitHub, 2025. Disponível em: https://kiro.dev/cli/. Acesso em: 10 fev. 2026.
Clear, T.; Cajander, A.; Clear, A.; McDermott, R.; Daniels, M.; Divitini, M.; Forshaw, M.; Humble, N.; Kasinidou, M.; Kleanthous, S.; Kultur, C.; Parvini, G.; Polash, M.; Zhu, T. 2024. Al Integration in the IT Professional Workplace: A Scoping Review and Interview Study with Implications for Education and Professional Competencies. In: Annual Conference on Innovation and Technology in Computer Science Education, 2024, Milan, Italy. Anais […]. p. 34-67. Disponível em: https://dl.acm.org/doi/10.1145/3689187.3709607. Acesso em 29 out. 2025.
Ehtesham, A.; Singh, A.; Kumar, S.; Gupta, G.K. 2025. A survey of agent interoperability protocols: Model Context Protocol (MCP), Agent Communication Protocol (ACP), Agent-to-Agent Protocol (A2A), and Agent Network Protocol (ANP). Disponível em: https://arxiv.org/abs/2505.02279. Acesso em: 29 out. 2025.
Hou, X.; Zhao, Y.; Wang, S.; Wang, H. 2025. Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions. Disponível em: https://arxiv.org/abs/2503.23278. Acesso em: 29 out. 2025.
Krishnan, N. 2025. Advancing Multi-Agent Systems Through Model Context Protocol: Architecture, Implementation, and Applications. Disponível em: https://arxiv.org/abs/2504.21030. Acesso em: 29 out. 2025.
Kumar, A.; Murphy-Hill, E.; Bajpai, Y.; Gulwani, S.; Soares, G. 2025. Sharp Tools: How Developers Wield Agentic Al in Real Software Engineering Tasks. Disponível em: https://arxiv.org/abs/2506.12347. Acesso em: 29 out. 2025.
Li, Q.; Xie, Y. 2025. From Glue-Code to Protocols: A Critical Analysis of A2A and MCP Integration for Scalable Agent Systems. Disponível em: https://arxiv.org/abs/2505.03864. Acesso em: 29 out. 2025.
Ray, P.P. 2025. A Survey on Model Context Protocol: Architecture, State-of-the-art, Challenges and Future Directions. Disponível em: https://www.techrxiv.org/articles/preprint/A_Survey_on_Model_Context_Protocol_Architecture_State-of-the-art_Challenges_and_Future_Directions/1286748. Acesso em: 29 out. 2025.
Stratis, K. 2026. Al Agents with MCP. 1. ed. O’Reilly Media.
The Linux Foundation. 2025. Linux Foundation Announces the Formation of the Agentic Al Foundation (AAIF), Anchored by New Project Contributions Including Model Context Protocol (MCP), goose and AGENTS.md Disponível em: https://www.linuxfoundation.org/press/linux-foundation-announces-the-formation-of-the-agentic-ai-foundation. Acesso em 10 fev. 2026.
Article originating from the Final Course Work of the Specialization in Software Engineering of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform