Call for paper last date Dec. 21, 2026, 11:59 p.m. Submit
Research Article

Azure Functions as Scalable Agent MCP Tools: Architecture and Model-based Evaluation of Elastic, Serverless Tool Invocation for AI Agents

by  Roshan Kumar Choudhary
journal cover
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 187 - Issue 151
Published: November 2026
Authors: Roshan Kumar Choudhary
10.5120/ijcaf628698ff2b2
PDF

Roshan Kumar Choudhary . Azure Functions as Scalable Agent MCP Tools: Architecture and Model-based Evaluation of Elastic, Serverless Tool Invocation for AI Agents. International Journal of Computer Applications. 187, 151 (November 2026), 8-15. DOI=10.5120/ijcaf628698ff2b2

                        @article{ 10.5120/ijcaf628698ff2b2,
                        author  = { Roshan Kumar Choudhary },
                        title   = { Azure Functions as Scalable Agent MCP Tools: Architecture and Model-based Evaluation of Elastic, Serverless Tool Invocation for AI Agents },
                        journal = { International Journal of Computer Applications },
                        year    = { 2026 },
                        volume  = { 187 },
                        number  = { 151 },
                        pages   = { 8-15 },
                        doi     = { 10.5120/ijcaf628698ff2b2 },
                        publisher = { Foundation of Computer Science (FCS), NY, USA }
                        }
                        %0 Journal Article
                        %D 2026
                        %A Roshan Kumar Choudhary
                        %T Azure Functions as Scalable Agent MCP Tools: Architecture and Model-based Evaluation of Elastic, Serverless Tool Invocation for AI Agents%T 
                        %J International Journal of Computer Applications
                        %V 187
                        %N 151
                        %P 8-15
                        %R 10.5120/ijcaf628698ff2b2
                        %I Foundation of Computer Science (FCS), NY, USA
Abstract

Agentic AI systems call tools through the Model Context Protocol (MCP), producing bursty, latency-critical traffic that serverless platforms must absorb. This paper presents a reference architecture and a Java 21 implementation pattern for hosting MCP tools on Azure Functions, and evaluates the Consumption, Flex Consumption and Premium hosting plans using a discrete-event simulation with a Markov-modulated workload and an analytical monthly cost model. Under the stated assumptions, Flex Consumption with a small always-ready floor reached a P99 latency of about 1.1 s at roughly 8 USD per million calls, while a Premium EP2 plan reached about 1.3 s at about 89 USD per million calls; the legacy Consumption plan had a P99 of 4.7 s. Instance-allocation rate and per-instance concurrency, rather than the plan label, dominated tail latency and cost respectively, and per-call tail latency compounds to a 13–18% chance of a slow call in a 10-step agent workflow. The results are model-based, not measurements of a live deployment; they are accompanied by sensitivity and break-even analyses and by security and observability guidance.

References
  • S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao, “ReAct: Synergizing Reasoning and Acting in Language Models,” in Proc. ICLR, 2023.
  • T. Schick, J. Dwivedi-Yu, R. Dessì, R. Raileanu, M. Lomeli, L. Zettlemoyer, N. Cancedda, and T. Scialom, “Toolformer: Language Models Can Teach Themselves to Use Tools,” in Proc. NeurIPS, 2023.
  • Anthropic, “Model Context Protocol Specification,” Anthropic PBC, San Francisco, CA, 2025. [Online]. Available: https://modelcontextprotocol.io
  • Microsoft, “Azure Functions Overview,” Microsoft Azure Documentation, Redmond, WA, 2025. [Online]. Available: https://learn.microsoft.com/azure/azure-functions
  • Microsoft, “Event-driven Scaling in Azure Functions,” Microsoft Azure Documentation, Redmond, WA, 2025. [Online]. Available: https://learn.microsoft.com/azure/azure-functions/event-driven-scaling
  • Microsoft, “Azure Functions — Ignite 2025 Update: MCP Tool Trigger General Availability,” Microsoft Tech Community, Nov. 2025. [Online]. Available: https://techcommunity.microsoft.com/blog/appsonazureblog/azure-functions-ignite-2025-update/4469815
  • X. Hou, Y. Zhao, S. Wang, and H. Wang, “Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions,” arXiv preprint arXiv:2503.23278, 2025.
  • M. Shahrad, R. Fonseca, Í. Goiri, G. Chaudhry, P. Batum, J. Cooke, E. Laureano, C. Tresness, M. Russinovich, and R. Bianchini, “Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider,” in Proc. USENIX Annual Technical Conf. (ATC), 2020, pp. 205–218.
  • L. Wang, M. Li, Y. Zhang, T. Ristenpart, and M. Swift, “Peeking Behind the Curtains of Serverless Platforms,” in Proc. USENIX Annual Technical Conf. (ATC), 2018, pp. 133–146.
  • E. Jonas et al., “Cloud Programming Simplified: A Berkeley View on Serverless Computing,” arXiv preprint arXiv:1902.03383, 2019.
  • J. Dean and L. A. Barroso, “The Tail at Scale,” Commun. ACM, vol. 56, no. 2, pp. 74–80, Feb. 2013.
  • Microsoft, “Azure Functions Scale and Hosting,” Microsoft Azure Documentation, Redmond, WA, 2025. [Online]. Available: https://learn.microsoft.com/azure/azure-functions/functions-scale
  • Microsoft, “Azure Functions Flex Consumption Plan Hosting,” Microsoft Azure Documentation, Redmond, WA, 2025. [Online]. Available: https://learn.microsoft.com/azure/azure-functions/flex-consumption-plan
  • Microsoft, “Azure Functions Premium Plan,” Microsoft Azure Documentation, Redmond, WA, 2025. [Online]. Available: https://learn.microsoft.com/azure/azure-functions/functions-premium-plan
  • Microsoft, “Azure API Management Documentation,” Microsoft Azure Documentation, Redmond, WA, 2025. [Online]. Available: https://learn.microsoft.com/azure/api-management
  • W3C, “Trace Context,” World Wide Web Consortium Recommendation, Feb. 2020. [Online]. Available: https://www.w3.org/TR/trace-context
  • OpenTelemetry Authors, “OpenTelemetry Specification,” Cloud Native Computing Foundation, 2025. [Online]. Available: https://opentelemetry.io/docs/specs/otel
  • Microsoft, “Azure Functions Pricing,” Microsoft Azure, Redmond, WA, 2025. [Online]. Available: https://azure.microsoft.com/pricing/details/functions
  • KEDA Authors, “KEDA: Kubernetes Event-Driven Autoscaling,” Cloud Native Computing Foundation, 2025. [Online]. Available: https://keda.sh
  • Microsoft, “Azure AI Foundry,” Microsoft Azure, Redmond, WA, 2025. [Online]. Available: https://ai.azure.com
  • W3C, “Trace Context Level 2,” World Wide Web Consortium Working Draft, 2024. [Online]. Available: https://www.w3.org/TR/trace-context-2
  • Microsoft, “Durable Functions Overview,” Microsoft Azure Documentation, Redmond, WA, 2025. [Online]. Available: https://learn.microsoft.com/azure/azure-functions/durable/durable-functions-overview
  • Resilience4j Authors, “Resilience4j: Fault Tolerance Library for Java,” GitHub, 2025. [Online]. Available: https://resilience4j.readme.io
  • W. Fischer and K. Meier-Hellstern, “The Markov-Modulated Poisson Process (MMPP) Cookbook,” Performance Evaluation, vol. 18, no. 2, pp. 149–171, 1993.
  • J. D. C. Little, “A Proof for the Queuing Formula: L = λW,” Operations Research, vol. 9, no. 3, pp. 383–387, 1961.
Index Terms
Computer Science
Information Sciences
No index terms available.
Keywords

Azure Functions Model Context Protocol MCP serverless computing tail latency discrete-event simulation Java 21 agentic AI cost modelling

Powered by PhDFocusTM