This feature is currently in public preview. This preview is provided without a service-level agreement, and we don’t recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.
How tools work
When you type a natural-language prompt in an MCP-compliant client (for example, GitHub Copilot Agent Mode), the language model selects the appropriate tool and formulates the required parameters on your behalf. You don’t call tools directly — you describe what you want, and the model translates your intent into a tool call. Each tool is classified as read (retrieves information) or write (creates, updates, or deletes resources). Write operations affect live resources and billing immediately. Review the security best practices before running write operations.Permissions
All operations run with the authenticated user’s permissions through the Microsoft Entra ID On-Behalf-Of flow. You need the following roles:
For more information, see Role-based access control for Microsoft Foundry.
Key identifiers
Many tools require resource identifiers. The language model extracts these from your prompt context, but it helps to know the formats:Agent management
Manage the full lifecycle of agents in a Foundry project, including creation, invocation, container orchestration, and deletion. Example prompts:- “List all agents in my Foundry project.”
- “Create a new agent named
faq-agentusing modelgpt-4o-mini.” - “Send ‘Hello, how can you help?’ to my
customer-support-agent.” - “Start the container for my hosted agent
triage-agent.” - “Check the container status for
triage-agent.” - “Show me the agent definition schema for prompt agents.”
- “Delete the
old-test-agentfrom my project.”
Dataset management
Create, retrieve, and version evaluation datasets in a Foundry project. Example prompts:- “Upload my customer support Q&A dataset from this Azure Blob Storage URL.”
- “Show me all datasets in my Foundry project.”
- “Get details for the
customer-support-qadataset version 2.” - “List all versions of my
product-reviewsdataset.”
Evaluation operations
Run batch evaluations against agents or datasets, and compare results across runs. Example prompts:- “Evaluate my
customer-support-agentv2 using Relevance, Groundedness, and Coherence evaluators.” - “Run a batch evaluation on my JSONL dataset with Violence and HateUnfairness evaluators.”
- “Generate 50 synthetic test queries and evaluate my agent with them.”
- “Show me all evaluation runs in my Foundry project.”
- “Compare run-baseline-123 against treatment runs run-124 and run-125.”
Evaluator catalog
Browse built-in evaluators and manage custom evaluators for use in evaluation runs. Example prompts:- “List all built-in evaluators available in my project.”
- “Show me the full definition of the
coherenceevaluator.” - “Create a custom prompt-based evaluator called
tone-checkthat scores responses on a 1-5 scale.” - “Update the description of my
tone-checkevaluator.” - “Delete version 1 of my
old-evaluator.”
Model catalog and details
Explore and get details about models in the Foundry model catalog. Example prompts:- “Show me all GPT-5.4 models available in the catalog.”
- “List all Microsoft-published models with MIT license.”
- “Get detailed information and code samples for GPT-5-mini.”
Model deployment management
Deploy, inspect, and remove model deployments in a Foundry account. Example prompts:- “Deploy GPT-5-mini as
production-chatbotwith 20 capacity units.” - “Show me all my current model deployments.”
- “Delete the
old-test-deploymentthat I’m no longer using.”
Model analytics and recommendations
Compare model benchmarks and get recommendations for switching to more cost-effective or higher-quality models. Example prompts:- “Show me benchmark data for all available models.”
- “Compare benchmark performance between GPT-5.4 and GPT-4.”
- “Find models similar to my current GPT-4 deployment.”
- “What models would give me better quality/cost ratio than what I’m using now?”
Model monitoring and operations
Track deployment health, monitor metrics, check deprecation status, and view quota usage. Example prompts:- “Show me the request metrics for my
production-chatbotdeployment.” - “Check if any of my deployments are using deprecated model versions.”
- “Show me quota usage across all regions for my subscription.”
Project connections
Manage connections to external services (Azure OpenAI, Azure Blob Storage, search, and others) within a Foundry project. Example prompts:- “List all connections in my Foundry project.”
- “Show me the details for my
azure-searchconnection.” - “What connection types and authentication methods are supported?”
- “Create a new AzureOpenAI connection called
my-openaiusing AAD auth.” - “Delete the
old-storageconnection from my project.”
Prompt optimization
Optimize system prompts and developer messages for better LLM performance. Example prompts:- “Optimize my system prompt: ‘You are a helpful customer service agent’ using
gpt-5.4.” - “Improve my agent instructions to get more concise responses.”
- “Refine my optimized prompt to also handle follow-up questions.”
Example workflows
Agent evaluation workflow:- “List all agents in my project.”
- “Evaluate my
customer-support-agentv2 using Relevance, Groundedness, and Safety evaluators.” - “Compare my baseline evaluation against the new run.”
- “Show me the comparison results with statistical significance.”
- “Show me all GPT-5.4 models available in the catalog.”
- “Deploy GPT-5.4 as
customer-service-botwith 15 capacity units.” - “Monitor the request latency for my new deployment.”
- “Recommend more cost-effective alternatives based on current usage.”
- “List all my current deployments and their usage.”
- “Check which deployments are using deprecated model versions.”
- “Show me my quota usage across all regions.”
- “Delete unused test deployments to free up capacity.”
Preview limitations
Foundry MCP Server is in public preview. The following limitations apply:- No network isolation — Foundry MCP Server uses the public endpoint
https://mcp.ai.azure.com. Resources behind Azure Private Links aren’t accessible. For private MCP connectivity, build your own MCP server and connect it to Agent Service with private networking. - Data residency — Requests and responses might be processed in EU or US data centers. The server itself doesn’t store data, but cross-region processing can occur.
- No SLA — Preview features don’t include a service-level agreement. Don’t use the server for production workloads that require guaranteed availability.
- Tool set might change — Tools, parameters, and return values might change during the preview period without notice.
Common errors
For more troubleshooting guidance, see Foundry MCP Server security and best practices.
Related content
- Get started with Foundry MCP Server
- Learn how to build your own MCP server
- Review security best practices for MCP servers
- Learn how to submit your MCP server for certification at Microsoft MCP server certification overview.