Edit

Share via


Azure AI Foundry tools for the Azure MCP Server

The Azure MCP Server enables you to manage Azure resources, including Azure AI Foundry models and deployments, with natural language prompts. This capability helps you quickly manage your AI models without needing to remember complex syntax.

Azure AI Foundry is a platform for deploying and managing custom AI models in Azure. It provides tools and services for training, fine-tuning, deploying, and monitoring AI models in production environments. With Azure AI Foundry, you can more easily incorporate AI capabilities into your applications.

When connecting to your Azure AI Foundry resource, the Azure MCP Server requires either the endpoint or the resource group of your Azure AI Foundry resource. For operations that don't require a specific resource, such as listing available models, neither the endpoint or resource group is required.

Note

The Azure MCP Server tools define parameters for data they need to complete tasks. Some of these parameters are specific to each tool and are documented below. Other parameters are global and shared by all tools. For more information, see Tool parameters.

Agents: Connect and run

Connect to a specific Azure AI Agent and run a query. This command returns the agent's response along with thread and run IDs for potential evaluation.

Example prompts include:

  • Connect to agent: "Connect to agent 'support-bot' and ask about ticket status"
  • Query specific agent: "Ask agent 'sales-bot' for the latest sales report"
  • Use context: "Connect to agent 'hr-bot' with context from the last conversation"
Parameter Required or optional Description
Agent Required The ID of the agent to interact with.
Query Required The query sent to the agent.
Endpoint Required The endpoint URL for the Azure AI service.

Agents: Evaluate an agent

Run agent evaluation on agent data. Requires JSON strings for query, response, and tool definitions.

Example prompts include:

  • Evaluate task adherence: "Evaluate the full query and response I got from my agent for task_adherence"
  • Check intent resolution: "Evaluate my agent's response for intent_resolution using the query about pricing plans"
  • Verify tool accuracy: "Analyze the tool_call_accuracy of my sales-bot's response to the customer inquiry"
  • Assess agent performance: "Evaluate my support agent's response to the technical issue query using task_adherence"
  • Comprehensive evaluation: "Run an evaluation on my HR agent's handling of the employee onboarding query with all the response data"
Parameter Required or optional Description
Query Required The query sent to the agent.
Evaluator Required The name of the evaluator to use (intent_resolution, tool_call_accuracy, task_adherence).
Response Optional The response from the agent.
Tool Definitions Optional Optional tool definitions made by the agent in JSON format.
Azure Openai Endpoint Required The endpoint URL for the Azure OpenAI service to be used in evaluation.
Azure Openai Deployment Required The deployment name for the Azure OpenAI model to be used in evaluation.

Agents: List agents

List all Azure AI Agents available in the configured project.

Example prompts include:

  • View all agents: "Show me all agents in Azure AI Foundry"
  • List by project: "List all AI agents in my 'customer-service' project"
  • Check available agents: "What agents do I have configured in my Azure AI Foundry account?"
  • Agent inventory: "I need a complete list of all the agents in my Azure AI environment"
  • Find specific agents: "Show me all chatbot agents available in my Azure AI Foundry resource"
Parameter Required or optional Description
Endpoint Required The endpoint URL for the Azure AI service.

Agents: Query and execute an agent

Query an agent and evaluate its response in a single operation. This command returns both the agent response and evaluation results.

Example prompts include:

  • Query and evaluate: "Query agent 'support-bot' about ticket status and evaluate task adherence"
  • Single operation: "Ask agent 'sales-bot' for the latest sales report and check intent resolution"
  • Combined action: "Connect to agent 'hr-bot', ask about onboarding, and evaluate tool call accuracy"
  • Full cycle: "Query 'marketing-bot' for campaign ideas and evaluate the response for task adherence"
  • End-to-end check: "Ask 'devops-bot' about deployment status and evaluate intent resolution"
Parameter Required or optional Description
Agent ID Required The ID of the agent to interact with.
Query Required The query sent to the agent.
Endpoint Required The endpoint URL for the Azure AI service.
Evaluators Optional The list of evaluators to use for evaluation, separated by commas. If not specified, all evaluators are used.
Azure Openai Endpoint Required The endpoint URL for the Azure OpenAI service to be used in evaluation.
Azure Openai Deployment Required The deployment name for the Azure

Knowledge: List indexes

Get a list of knowledge indexes from Azure AI Foundry:

  • Find knowledge indexes created within Azure AI Foundry projects.
  • Use these indexes with AI agents for knowledge retrieval and RAG applications.
  • The list updates as you create new indexes or update existing ones.

Example prompts include:

  • View all indexes: "Show me all knowledge indexes in Azure AI Foundry"
  • Filter by project: "List knowledge indexes in the 'support-bot' project"
  • Search by name: "Find the knowledge index named 'product-faqs'"
  • Filter by tag: "List knowledge indexes tagged with 'security' or 'onboarding'"
  • Show index details: "Show details for the 'customer-service' knowledge index, including document count and last updated date"
Parameter Required or optional Description
Endpoint Required The endpoint URL for the Azure AI service.

Knowledge: Get index schema

Get the detailed schema configuration of a specific knowledge index from Azure AI Foundry.

This operation shows you comprehensive information about the structure and configuration of a knowledge index, including field definitions, data types, searchable attributes, and other schema properties. Use this schema information to understand how the index structures and indexes your data for searching.

Example prompts include:

  • View index schema: "Show me the schema for the knowledge index 'product-facts'"
Parameter Required or optional Description
Endpoint Required The endpoint URL for the Azure AI service.
Index Required The name of the knowledge index.

Models: List available models

List all available AI models in Azure AI Foundry.

Example prompts include:

  • View all models: "Show me all available AI models in Azure AI Foundry"
  • Filter by free usage: "List all free models available for prototyping in Azure AI Foundry that I can use in the playground"
  • Filter by free usage: "List all free models available for prototyping in Azure AI Foundry"
  • Filter by publisher: "Show me models published by Microsoft in Azure AI Foundry"
  • Filter by license: "What models with Apache license are available in Azure AI Foundry?"
  • Search by name: "Find the llama model in Azure AI Foundry"
Parameter Required or optional Description
Search for free playground Optional If set to true, returns a list of models from Azure AI Foundry that you can also use with GitHub inference endpoint and GitHub PAT token. If false, returns a list of models from Azure AI Foundry, regardless of GitHub support. To learn more, see GitHub Models.
Publisher Optional A filter to specify the publisher of the models to retrieve.
License Optional A filter to specify the license type of the models to retrieve.
Model Optional The name of the model to search for.

Models: Deploy a model

Deploy an AI model to your Azure environment. Use this command to deploy selected models from Azure AI Foundry and make them available for use in your applications.

Example prompts include:

  • Deploy with required parameters: "Deploy GPT-4 model in OpenAI format to my ai-services account in ai-projects resource group with subscription dev-subscription"
  • Specify deployment name: "Set up a deployment named text-embedding for the Ada embedding model in my AI services account with Standard SKU"
  • Include model version: "Deploy version 2 of Llama model from Meta to my Azure AI services account with scale capacity of 3"
  • Deploy to specific resource group: "Create a deployment named content-generation with GPT-4 model in my ai-central service in resource group ml-experiments"
  • Configure scaling: "Deploy Claude model to my Azure AI service with autoscaling enabled and maximum capacity of 5"
Parameter Required or optional Description
Deployment Required A unique name for this model deployment.
Model Required The name of the model to deploy.
Model format Required The format of the model (for example, 'OpenAI', 'Meta', 'Microsoft').
Azure AI services Required The name of the Azure AI services account to deploy to.
Resource group Required The name of the Azure resource group where the model will be deployed.
Model version Optional The version of the model to deploy.
Model source Optional The source of the model.
Scale type Optional The scale type for the deployment.
Scale capacity Optional The scale capacity for the deployment.
SKU Optional The SKU name for the deployment.
SKU capacity Optional The SKU capacity for the deployment.

Models: List model deployments

List all model deployments associated with a specific Azure AI Foundry endpoint. Use this command to monitor and manage your active model deployments. In the following example prompts, replace https://my-example-resource.openai.azure.com with your actual Azure AI Foundry endpoint URL.

Example prompts include:

  • List deployments on production: "Show me all model deployments on my https://my-example-resource.openai.azure.com endpoint"
  • Check specific endpoint: "What models are currently deployed to the https://my-example-resource.openai.azure.com endpoint?"
  • View regional deployments: "List all deployments in my https://my-example-resource.openai.azure.com endpoint"
  • Check deployment status: "Show me the status of all models deployed to our https://my-example-resource.openai.azure.com endpoint"
  • See active models: "What AI models are running on our https://my-example-resource.openai.azure.com endpoint right now?"
Parameter Required or optional Description
Endpoint Required The endpoint URL for the Azure AI service.

OpenAI: Create text Completion

Generate text completions using deployed Azure OpenAI models in AI Foundry. This tool sends prompts to Azure OpenAI completion models and returns generated text as JSON with configurable parameters like temperature and max tokens.

Example prompts include:

  • Basic completion: "Create a completion with the prompt 'What is Azure?' using my 'gpt-35-turbo' deployment"
  • With temperature control: "Generate text completion for 'Explain machine learning' using deployment 'text-davinci-003' with temperature 0.3"
  • Limited tokens: "Create a completion with prompt 'Write a summary' using my 'gpt-4' deployment with max 100 tokens"
  • Creative writing: "Generate completion for 'Tell me a story about AI' using deployment 'gpt-35-turbo' with temperature 0.8 and 200 max tokens"
  • Technical explanation: "Create completion with prompt 'How does cloud computing work?' using my OpenAI resource 'ai-services-east' and deployment 'gpt-4'"
Parameter Required or optional Description
Resource group Required The name of the Azure resource group where the AI resource is hosted.
Resource name Required The name of the Azure OpenAI resource.
Deployment Required The name of the deployment.
Prompt text Required The prompt text to send to the completion model.
Max tokens Optional The maximum number of tokens to generate in the completion.
Temperature Optional Controls randomness in the output. Lower values make it more deterministic.