Skip to main content
Foundry MCP Server exposes 38 tools across 10 categories that let you manage agents, datasets, evaluations, model deployments, and more — all through conversational prompts instead of API calls. Use this reference to explore each tool and try the example prompts in your own project.
Before using these tools, complete the Foundry MCP Server setup.
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-agent using model gpt-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-agent from 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-qa dataset version 2.”
  • “List all versions of my product-reviews dataset.”

Evaluation operations

Run batch evaluations against agents or datasets, and compare results across runs. Example prompts:
  • “Evaluate my customer-support-agent v2 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 coherence evaluator.”
  • “Create a custom prompt-based evaluator called tone-check that scores responses on a 1-5 scale.”
  • “Update the description of my tone-check evaluator.”
  • “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-chatbot with 20 capacity units.”
  • “Show me all my current model deployments.”
  • “Delete the old-test-deployment that 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-chatbot deployment.”
  • “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-search connection.”
  • “What connection types and authentication methods are supported?”
  • “Create a new AzureOpenAI connection called my-openai using AAD auth.”
  • “Delete the old-storage connection 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:
  1. “List all agents in my project.”
  2. “Evaluate my customer-support-agent v2 using Relevance, Groundedness, and Safety evaluators.”
  3. “Compare my baseline evaluation against the new run.”
  4. “Show me the comparison results with statistical significance.”
Model deployment and optimization:
  1. “Show me all GPT-5.4 models available in the catalog.”
  2. “Deploy GPT-5.4 as customer-service-bot with 15 capacity units.”
  3. “Monitor the request latency for my new deployment.”
  4. “Recommend more cost-effective alternatives based on current usage.”
Resource management and cleanup:
  1. “List all my current deployments and their usage.”
  2. “Check which deployments are using deprecated model versions.”
  3. “Show me my quota usage across all regions.”
  4. “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.
For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

Common errors

For more troubleshooting guidance, see Foundry MCP Server security and best practices.