Azure

Azure Foundry Context Engineering Cuts AI Agent Costs

3 min read

Summary

Microsoft outlines how context engineering in Azure Foundry can reduce enterprise AI agent costs while improving answer quality. The update highlights Foundry IQ, Toolboxes, Skills, and Memory as ways to limit unnecessary prompt content, improve retrieval accuracy, and simplify governance at scale.

Need help with Azure?Talk to an Expert

Introduction

Enterprise AI agents can become expensive quickly, especially when every turn sends large prompts, long tool lists, and full conversation history back to the model. Microsoft’s latest Azure post focuses on context engineering in Microsoft Foundry as a practical way to reduce those costs without sacrificing quality.

For IT teams building or governing AI agents, this matters because context often drives both inference spend and response accuracy. Optimizing what the model sees on each turn can improve outcomes over time while keeping AI investments manageable.

What’s new in Azure Foundry context engineering

Microsoft describes four core areas for optimizing agent context:

1. Knowledge with Foundry IQ

  • Foundry IQ acts as a managed knowledge layer across sources such as SharePoint, Azure Blob Storage, OneLake, Azure SQL, Fabric IQ, and web content.
  • It breaks queries into subqueries, searches sources in parallel, reranks results semantically, and returns grounded passages with citations.
  • Microsoft says internal evaluations showed up to 54% better evidence recall and 34% lower retrieval token costs.
  • It also supports governance through Microsoft Entra identity, ACL synchronization, and Microsoft Purview sensitivity labels.

2. Tool access through Toolboxes

  • Toolboxes provide a managed endpoint for built-in tools, custom MCP servers, OpenAPI APIs, and A2A agents.
  • Instead of sending the full tool catalog to the model every turn, tool search lets the model request only the tools it needs.
  • In Microsoft benchmarking, Toolboxes reduced average input-token consumption by around 97% for large tool libraries.

3. Reusable procedures with Skills

  • Skills let organizations store procedures centrally rather than embedding long instructions in each agent.
  • Agents initially see only a skill name and description, loading full instructions only when needed.
  • This should help standardize workflows while reducing repeated prompt overhead.

4. Persistent continuity with Memory

  • Foundry Agent Service supports:
    • Session memory for current conversations
    • User memory for preferences and facts across sessions
    • Procedural memory for learned workflows
  • This reduces the need to replay full conversation history on every turn.

Impact on IT administrators

For Azure and AI platform teams, these capabilities improve both cost control and governance. Centralized knowledge, tool, skill, and memory management can make agents easier to scale across business units while maintaining access controls and compliance boundaries.

It also gives teams a more operational model for AI: optimize context continuously instead of relying only on model changes or prompt rewrites.

Next steps

  • Review current agent architectures for oversized prompts, tool sprawl, and excessive chat history.
  • Evaluate whether Foundry IQ knowledge bases can replace broad document injection.
  • Test Toolboxes and Skills to centralize integrations and reusable procedures.
  • Validate identity, ACL, and Purview controls before wider rollout.

For organizations running AI agents in Azure, context engineering is emerging as one of the clearest ways to improve quality while lowering recurring costs.

Need help with Azure?

Our experts can help you implement and optimize your Microsoft solutions.

Talk to an Expert

Stay updated on Microsoft technologies

Azure FoundryAI agentscontext engineeringFoundry IQenterprise AI

Related Posts

Azure

Azure Cobalt 200 Boosts EDA Workload Performance

Microsoft shared early benchmark results showing Azure Cobalt 200 significantly improves electronic design automation (EDA) workloads used for silicon design and validation. In Microsoft’s internal testing, Cobalt 200 delivered 1.30x to 4.15x better performance than Cobalt 100 across simulation, verification, static timing, and physical signoff scenarios, highlighting its value for compute-intensive engineering workloads in Azure.

Azure

Azure Failure Prediction Improves VM Reliability 36%

Microsoft detailed how Azure Failure Prediction and Detection (AFPD) helps prevent hardware-related VM interruptions before they impact workloads. The platform-wide system uses machine learning, telemetry, live migration, and automated remediation, and has already reduced hardware-related reboots by more than 36% for mission-critical Azure workloads.

Azure

Microsoft Foundry Adds fal Video AI Models in Preview

Microsoft has partnered with fal to bring new video generation models to Microsoft Foundry in public preview, including Kling, LTX, and MiniMax options. The update gives Azure developers more flexibility to build text-to-video and image-to-video workflows while balancing quality, speed, cost, and enterprise requirements such as hosting location and governance.

Azure

Microsoft Foundry: Scale AI Agents With Cost Control

Microsoft is urging organizations to stop treating AI agents as isolated pilots and instead manage them as an ongoing operational discipline. The company highlights Microsoft Foundry as the platform for planning, controlling, and optimizing AI agent cost, performance, governance, and ROI at scale.

Azure

Azure Agentic AI Platform: Infrastructure for Scale

Microsoft says the next phase of AI depends on infrastructure designed for long-running agentic workloads, not just better models. The company positions Azure as an integrated platform that combines compute, storage, networking, and operations to help organizations run AI agents reliably, cost-effectively, and at scale.

Azure

Azure Foundry Agent Service Adds Copilot Harness

Microsoft has introduced the Microsoft Copilot harness in Foundry Agent Service as a public preview, giving developers a fully managed way to build agents that can reason, use tools, and complete long-running tasks. The company also announced general availability of long-running resilience for hosted agents, helping teams build more reliable AI workflows without managing the full execution stack themselves.