注意
此架构描述向声明性代理提供操作的 API 和 MCP 插件。 它不是可安装插件包的 Microsoft 365 应用清单。 请参阅清单关系的 插件和声明式代理操作 。 若要组装可安装包,请参阅 打包插件。
API 和 MCP 插件使智能 智能 Microsoft 365 Copilot 副驾驶® 副驾驶®中的声明性代理能够与 OpenAPI 说明描述的 MCP 服务器或 REST API 交互。 插件包含插件清单文件,该文件提供有关插件的元数据,例如插件的名称、说明和版本。 插件清单还包括有关插件功能的信息,例如它支持的 MCP 工具或 API 以及它可以执行的操作。
以下文章介绍了 API 和 MCP 插件清单文件使用的 2.4 架构。 有关这些操作集成的详细信息,请参阅 声明式代理的 MCP 和 API 插件。
与以前版本相比的更改
此架构版本与 版本 2.3 相比引入了以下更改。
- 添加了对 MCP) 服务器 (模型上下文协议的支持。
- 为运行时对象中的属性添加了新值
type。RemoteMCPServer - 添加了 MCP 服务器规格对象 以描述如何连接到 MCP 服务器。
- 为运行时对象中的属性添加了新值
- 增强的 响应语义对象 ,支持静态模板的文件引用。
- 该
static_template属性现在可以使用属性引用file外部文件。
- 该
- 更新了 OpenAPI GET 操作 的确认对象
isNonConsequential属性行为。
JSON 架构
若要查看本文档中所述的 JSON 架构 ,请参阅 schema.json。
约定
URL 中的相对引用
除非另有指定,否则作为 URL 的所有属性都可以是相对引用。 清单文档中的相对引用是相对于清单文档位置的。
字符串长度
除非另有指定,否则所有字符串属性都应限制为 4K 个字符。 此字符串长度不会为整个文档授予任何可接受的大小。 实现 可以自由地对清单长度施加自己的实际限制。
无法识别的属性
本文档中定义的 JSON 对象仅支持所述属性。 任何 JSON 对象中无法识别的属性应该使整个文档无效。
字符串本地化
可本地化的字符串可以使用本地化键而不是文本值。 语法为 [[key_name]],其中 key_name 是本地化文件中属性 localizationKeys 中的键名称。 有关本地化的详细信息,请参阅 本地化代理。
本地化字符串示例
{
"schema_version": "v2.3",
"name_for_human": "[[plugin_name]]",
"description_for_human": "[[plugin_description]]"
}
插件清单对象
插件清单文档的根目录是包含描述插件的属性的 JSON 对象。
插件清单对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
schema_version |
String | 必需。 架构版本。 以前的版本是 v1、 v2、 v2.1、 v2.2和 v2.3。 必须设置为 v2.4。 |
name_for_human |
字符串 | 必填。 插件的简短、可读的名称。 它必须至少包含一个非空格字符。 超过 20 个字符可以忽略。 此属性可本地化。 |
namespace |
String | 必填。 包含用于防止来自不同插件的函数名称之间的名称冲突的标识符。 该值必须与正则表达式 ^[A-Za-z0-9]+匹配。 |
description_for_model |
String | 可选。 提供给模型的插件的说明。 此描述应描述插件的用途,以及其功能在什么情况下相关。 忽略超过 2048 的字符。 此属性可本地化。 |
description_for_human |
String | 必填。 插件的可读说明。 超过 100 个字符可能会被忽略。 此属性可本地化。 |
logo_url |
String | 可选。 用于提取业务流程协调程序可能使用的徽标的 URL。 实现可以提供替代方法来提供满足其视觉要求的徽标。 此属性可本地化。 |
contact_email |
String | 可选。 用于安全/审核、支持和停用的联系人的电子邮件地址。 |
legal_info_url |
String | 可选。 用于查找包含插件服务条款的文档的绝对 URL。 此属性可本地化。 |
privacy_policy_url |
String | 可选。 一个绝对 URL,用于查找包含插件隐私策略的文档。 此属性可本地化。 |
functions |
函数对象的数组 | 可选。 一组描述可用于插件的函数的函数对象。 每个函数对象名称在数组中必须唯一。 数组的顺序并不重要。 如果该 functions 属性不存在并且存在 OpenAPI 运行时,则从 OpenAPI 操作推断出这些函数。 |
runtimes |
运行时对象的数组 | 可选。 一组运行时对象,描述插件使用的运行时。 |
capabilities |
插件功能对象 | 可选。 介绍插件的功能。 |
Function 对象
与模型应如何与函数交互相关的信息。
函数对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
id |
String | 可选。 |
name |
String | 必填。 唯一标识此函数的字符串。 运行时对象可以引用此标识符来将运行时绑定到函数。 当函数绑定到 OpenAPI 运行时时,该值必须与 OpenAPI 说明中的值匹配 operationId 。 值必须与 ^[A-Za-z0-9_]+$ 正则表达式匹配。 |
description |
String | 可选。 更适合模型的描述,例如令牌上下文长度注意事项或用于改进插件提示的关键字 (keyword) 用法。 |
parameters |
函数参数对象 | 可选。 包含以与运行时无关的方式描述函数参数的属性的对象。 它镜像 json-schema 的形状,但仅支持 JSON 架构功能的一小部分。 如果该 parameters 属性不存在,则由类型 OpenApi 运行时对象描述的函数使用 OpenAPI 说明来确定参数。 JSON 对象中的每个成员都是描述参数语义的函数参数对象。 |
returns |
返回对象 OR 丰富返回对象 | 可选。 描述从函数返回的值的语义。 |
states |
函数状态对象 | 可选。 定义业务流程协调程序状态的状态对象。 |
capabilities |
函数功能对象 | 可选。 包含用于在调用函数时配置业务流程协调程序可选功能的数据集合。 |
函数对象示例
{
"functions": [
{
"name": "add_todo",
"description": "Adds a new Todo",
"parameters": {
"type": "object",
"properties": {
"description": {
"type": "string"
}
},
"required": [
"description"
]
},
"returns": {
"type": "string"
}
}
]
}
函数参数对象
用于标识可传递给函数的参数集的对象。 此对象的结构镜像 JSON 架构对象的形状,但它仅支持 JSON 架构关键字的子集。
函数参数对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
type |
String | 可选。 JSON 架构类型。 必须设置为 object。 |
properties |
函数参数属性对象 | 必填。 将参数名称映射到其定义的对象。 |
required |
字符串数组 | 可选。 是必需参数的属性的名称。 与 JSON 架构不同,此数组中的值必须与属性中列出的 properties 名称匹配。 |
函数参数对象示例
{
"type": "object",
"properties": {
"param1": {
"type": "string"
},
"param2": {
"type": "number"
}
},
"required": [
"param1"
]
}
函数参数属性对象
将参数名称映射到其定义的对象。
函数参数属性对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
名称匹配 ^[A-Za-z0-9_]+$ |
函数参数对象 | 可选。 与与属性名称匹配的参数相对应的参数定义。 |
函数参数对象
描述函数参数语义的对象。
函数参数对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
type |
String | 必填。 指定参数的类型。 可取值为:string、array、boolean、integer、number。 |
items |
函数参数对象 | 可选。 描述数组中单个元素的函数参数对象。 必须仅在为“区域”时typearray出现。 |
enum |
字符串数组 | 可选。 此参数的有效值的数组。 必须仅在为“区域”时typestring出现。 |
description |
String | 可选。 参数的说明。 |
default |
数组、布尔值、字符串、数字、整数 | 可选。 属性指定的 type 类型的值,该值指示在未提供可选参数值时 API 使用的值。 |
函数参数示例
{
"type": "string",
"description": "The color of the item",
"enum": [
"green",
"blue",
"orange"
]
}
返回对象
包含从函数返回的值的语义。
返回对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
type |
String | 必填。 指定 API 返回的值的类型。 可能的值为: string。 |
description |
String | 可选。 API 返回的值的说明。 |
丰富返回对象
指示函数返回与富响应协议兼容的响应。
丰富返回对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
$ref |
String | 必需。 必须设置为 https://copilot.microsoft.com/schemas/rich-response-v1.0.json。 |
函数状态对象
定义业务流程协调程序状态的状态对象。
函数状态对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
reasoning |
状态对象 | 可选。 模型可以调用函数和进行计算的状态。 |
responding |
状态对象 | 可选。 模型可以生成显示给用户的文本的状态。 模型无法调用处于响应状态的函数。 |
disengaging |
状态对象 | 可选。 |
状态对象
包含在特定业务流程协调程序状态下调用函数时的特定说明。
状态对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
description |
String | 可选。 描述在特定业务流程协调程序状态下使用时函数的用途。 |
instructions |
数组、字符串 | 可选。 用于向业务流程协调程序提供说明,了解如何在处于特定业务流程协调程序状态时使用此函数的字符串或字符串数组。 提供单个字符串表示打算提供一组覆盖任何内置函数提示的完整指令。 提供字符串数组表示意图增强内置函数提示机制。 |
examples |
数组、字符串 | 可选。 用于向业务流程协调程序提供有关如何调用此函数的示例的字符串或字符串数组。 |
状态对象示例
{
"functions": [
{
"name": "searchEmails",
"description": "search for Emails from using 3S search Service",
"states": {
"responding": {
"description": "",
"instructions": [
"Examine the output of searchEmails",
"Do not include any information that is not present in the JSON results.",
"Exclude any irrelevant data from the JSON results",
"Determine if the response contains an error field.",
"If an error is present, provide the error code and error message extracted from the response JSON.",
"If there is no error, extract and include as much relevant information as possible from the JSON result to meet the user's needs."
],
"examples": []
}
}
}
]
}
函数功能对象
包含用于在调用函数时配置业务流程协调程序可选功能的数据集合。
function capabilities 对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
confirmation |
确认对象 | 可选。 描述在调用函数之前应向用户呈现的确认对话框。 |
response_semantics |
响应语义对象 | 可选。 介绍业务流程协调程序如何解释响应有效负载并提供视觉呈现。 |
security_info |
安全信息对象 | 可选。 包含有关插件行为的证明,以便评估调用函数的风险。 如果省略此属性,则该函数无法与包含代理的其他插件或功能交互。 |
确认对象
描述业务流程协调程序如何在调用函数之前要求用户确认。
确认对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
type |
String | 可选。 指定确认的类型。 可取值为:None、AdaptiveCard。 |
title |
String | 可选。 确认对话框的标题。 此属性可本地化。 |
body |
String | 可选。 确认对话框的文本。 此属性可本地化。 |
isNonConsequential |
布尔值 | 可选。 指示函数是否为非顺序函数。 当设置为 true时,该函数被视为无关紧要的,允许用户在确认期间使用“始终允许”选项。 默认值为 false。 对于 OpenAPI 操作: 如果 OpenAPI 操作不是 GET,则此属性不起作用。 如果 OpenAPI 操作是 GET 并在 x-oai-isConsequential OpenAPI 规范中定义的,则此属性无效。 如果 OpenAPI 操作是 GET 并且 x-oai-isConsequential 未在 OpenAPI 规范中定义,则此属性可以将该操作设置为非紧要操作。 |
响应语义对象
包含用于识别响应有效负载的语义的信息,并允许使用 自适应卡在丰富的视觉体验中呈现该信息。
响应语义对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
data_path |
String | 必填。 一个 JSONPath RFC9535 查询,用于从函数响应中标识一组要使用每项中指定的模板呈现的元素。 |
properties |
响应语义属性对象 | 可选。 允许将 JSONPath 查询映射到已知数据元素。 每个 JSONPath 查询都与结果值相关。 |
static_template |
Object | 可选。 符合 自适应卡架构 和模板语言的 JSON 对象,或者包含引用 file 包含自适应卡架构的文件的属性。 此自适应卡实例用于呈现插件响应的结果。 如果不template_selector存在或无法解析为自适应卡,则使用此值。 如果使用文件引用选项,则 MUST 的 file 值必须是包含有效自适应卡架构的 JSON 文件的相对路径。 路径是相对于清单文档的位置。 |
oauth_card_path |
String | 可选。 |
静态模板示例
{
"functions": {
"capabilities": {
"response_semantics": {
"data_path": "$.resources",
"properties": {
"title": "$.name",
"subtitle": "$.location",
"url": "$.href",
"information_protection_label": "$.ipLabel"
},
"static_template": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.5",
"body": [
{
"type": "TextBlock",
"text": "${name}",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "${description}"
}
],
"action": [
{
"type": "Action.OpenUrl",
"title": "View",
"text": "${href}"
}
]
}
}
}
}
}
动态模板示例
{
"functions": {
"capabilities": {
"response_semantics": {
"data_path": "$.attachments",
"properties": {
"title": "$.title",
"subtitle": "$.subtitle",
"url": "$.url",
"thumbnail_url": "$.thumbnailUrl",
"template_selector": "$.template"
}
}
}
}
}
文件引用静态模板示例
{
"functions": {
"capabilities": {
"response_semantics": {
"data_path": "$.resources",
"properties": {
"title": "$.name",
"subtitle": "$.location",
"url": "$.href"
},
"static_template": {
"file": "./adaptive-cards/card.json"
}
}
}
}
}
响应语义属性对象
允许将 JSONPath 查询映射到已知数据元素。 每个 JSONPath 查询都与结果值相关。
响应语义属性对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
title |
String | 可选。 结果引文的标题。 |
subtitle |
String | 可选。 结果引文的副标题。 |
url |
String | 可选。 结果的引文 URL。 |
thumbnail_url |
String | 可选。 结果的缩略图 URL。 |
information_protection_label |
String | 可选。 结果内容的数据敏感度指示器。 |
template_selector |
String | 可选。 一个 JSONPath 表达式到一个自适应卡实例,用于呈现结果。 |
安全信息对象
包含用于确定调用函数的相对风险的信息。
安全信息对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
data_handling |
字符串数组 | 必需。 描述函数的数据处理行为的字符串数组。 有效值为 GetPublicData、GetPrivateData、DataTransformDataExportResourceStateUpdate、 和 。 |
数据处理值
| 值 | 说明 | 示例 |
|---|---|---|
GetPublicData |
指示函数从不需要身份验证的外部源检索数据。 | 通过服务调用以从公共网站检索数据的函数。 |
GetPrivateData |
指示函数从需要身份验证的外部源或用户的当前应用程序检索数据。 | 从专用数据库或用户当前打开的文档获取数据的函数。 |
DataTransform |
指示函数仅基于输入返回输出,而不引入任何新数据或导致资源更新。 | 将数字转换为单词或设置日期格式的函数。 |
DataExport |
指示函数将数据发送或写入函数本身之外的位置。 | 将数据保存到本地或云文件的函数。 |
ResourceStateUpdate |
指示函数通过启动事务、更改现实世界中的进程、授予或拒绝权限或执行需要显式用户确认的任何其他操作来影响资源。 | 用于预订酒店房间或将工作项的状态从 active 更改为 resolved的函数。 |
运行时对象
介绍插件如何调用 OpenAPI 函数。
OpenAPI 运行时对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
type |
String | 必填。 标识运行时的类型。 有效值是 OpenApi、LocalPlugin 和 RemoteMCPServer。 |
auth |
运行时身份验证对象 | 必填。 调用运行时所需的身份验证信息。 |
run_for_functions |
字符串数组 | 可选。 此运行时中可用的函数的名称。 如果省略此属性,则运行时描述的所有函数都可用。 提供的字符串值可以包含通配符。 多个运行时不得隐式或显式声明对同一函数的支持。 |
spec |
OpenAPI 规范对象、 本地终结点规范对象或 MCP 服务器规范对象 | 必填。 包含调用运行时所需的特定于运行时的信息。 |
OpenAPI 规范对象
包含调用运行时所需的 OpenAPI 信息。
OpenAPI 规范对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
url |
String | 可选。 要提取 OpenAPI 规范的 URL,使用 GET 请求调用。 除非存在此成员,否则 api_description 此成员是必需的。 |
api_description |
String | 可选。 一个包含 OpenAPI 说明的字符串。 如果此成员存在,则不是必需的, url 如果存在,则将被忽略。 |
progress_style |
String | 可选。 用于显示函数进度的进度样式。 可能的值是:None、ShowUsage、ShowUsageWithInput、ShowUsageWithInputAndOutput。 |
OpenAPI 规范对象示例
{
"runtimes":
[
{
"type": "OpenApi",
"auth": {
"type": "None"
},
"spec": {
"url": "https://example.org/api/openapi.yaml",
}
}
]
}
本地终结点规范对象
包含调用运行时所需的本地终结点信息。
本地终结点规范对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
local_endpoint |
String | 必需。 必须设置为 Microsoft.Office.Addin。 |
allowed_host |
字符串数组 | 可选。 指定插件可以在其中运行的主机应用。 有效值为 document、 、 mailpresentation和 workbook。 |
MCP 服务器规格对象
包含调用运行时所需的模型上下文协议 (MCP) 服务器连接信息。
MCP 服务器规格对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
url |
String | 必填。 MCP 服务器的 URL。 必须是有效的绝对 URL。 |
mcp_tool_description |
MCP 工具说明对象 | 可选。 包含对外部 MCP 工具描述文件或内联工具定义的引用。 |
MCP 工具说明对象
包含 MCP 服务器的工具说明。
MCP 工具说明对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
file |
String | 可选。 应用程序包内 MCP 工具说明文件的相对路径。 该文件必须是有效的 JSON, tools/list 其中包含与 MCP 服务器方法返回的格式匹配的工具说明。 路径是相对于清单文档的位置。 如果存在,则 tools 不得存在。 |
tools |
对象数组 | 可选。 工具定义的数组。 结构必须与 MCP 服务器的方法 tools/list 返回的格式匹配。 每个工具对象必须包含 name、 description和 inputSchema 属性。 如果存在,则 file 不得存在。 |
MCP 执行规范对象示例 (文件参考)
{
"runtimes": [
{
"type": "RemoteMCPServer",
"spec": {
"url": "https://mcp.example.org/",
"mcp_tool_description": {
"file": "mcp-tools.json"
}
}
}
]
}
内联) (MCP 执行规范对象示例
{
"runtimes": [
{
"type": "RemoteMCPServer",
"spec": {
"url": "https://mcp.example.org/",
"mcp_tool_description": {
"tools": [
{
"name": "get_weather",
"description": "Get current weather for a location",
"inputSchema": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state/country"
}
},
"required": ["location"]
}
}
]
}
}
}
]
}
运行时身份验证对象
包含插件用于向运行时进行身份验证的信息。
运行时身份验证对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
type |
String | 必填。 指定调用函数所需的身份验证类型。 可取值为:None、OAuthPluginVault、ApiKeyPluginVault。 |
reference_id |
String | 可选。 在 为 OAuthPluginVault 或 ApiKeyPluginVault时type使用的值。 提供必要的身份验证配置值时,将独立获取该 reference_id 值。 存在此机制是为了防止需要在插件清单中存储机密值。 |
运行时身份验证对象示例
{
"type": "OAuthPluginVault",
"reference_id": "0123456-abcdef"
}
插件功能对象
介绍插件的功能。
插件功能对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
conversation_starters |
对话启动对象的数组 | 可选。 可向用户显示的对话发起子,以获取有关如何调用插件的建议。 |
对话启动对象
插件可以回答的问题示例。
对话启动器对象包含以下属性。
| 属性 | 类型 | 说明 |
|---|---|---|
text |
String | 必填。 对话发起子的文本。 此属性可本地化。 |
title |
String | 可选。 对话发起人的标题。 此属性可本地化。 |
对话启动对象示例
{
"conversation_starters": [
{
"title": "Developer tasks",
"text": "What issues are assigned to me?"
}
]
}
清单示例
下面是一个插件清单文件的示例,它使用本文中描述的大多数清单属性和对象属性:
{
"schema_version": "v2.4",
"name_for_human": "Contoso Real Estate",
"description_for_human": "Find up-to-date, detailed real estate properties for sale on the market",
"description_for_model": "Plugin for finding properties for sale. Use it whenever a user asks about real estate properties for sale on the market. This plugin can be used to search for properties in a particular city, and with a given number of bedrooms, bathrooms, and amenities.",
"capabilities": {
"conversation_starters": [
{
"title": "Available listings",
"text": "What listings are available in my area?"
}
]
},
"functions": [
{
"name": "getListings",
"description": "Get a list of properties matching the specified criteria",
"parameters": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city to search properties in"
},
"bedrooms": {
"type": "number",
"description": "The number of bedrooms the property should have"
},
"bathrooms": {
"type": "number",
"description": "The number of bathrooms the property should have"
},
"amenities": {
"type": "array",
"description": "The list of amenities the property should have",
"items": {
"type": "string",
"description": "One amenity the property should have",
"enum": [
"air conditioning",
"balcony",
"dishwasher",
"elevator",
"fireplace",
"furniture",
"garden",
"gym",
"heating",
"jacuzzi",
"laundry room",
"microwave",
"no furniture",
"parking",
"patio",
"sauna",
"swimming pool",
"terrace",
"wi-fi"
]
}
}
}
},
"returns": {
"type": "string",
"description": "A list of properties"
},
"states": {
"reasoning": {
"description": "`getListings` returns a list of real estate properties for sale based on the specified criteria.",
"instructions": [
"If the user mentions a city in their question, only search in that city by using the city parameter.",
"If the user asks for properties with things like parking space, heating, jacuzzi, or similar amenities, use the amenities parameter to filter the results.",
"Only use the list of amenities provided in the amenities parameter enum. If the user asked for an amenity that is not in the list, find the closest match from the list, or ignore it if no match can be found."
]
},
"responding": {
"description": "`getListings` returns a list of real estate properties for sale based on the specified criteria.",
"instructions": [
"Determine if the response contains an error field.",
"If an error is present, provide the error code and error message from the JSON response to the user.",
"If there is no error, extract and include as much relevant information as possible from the JSON response to meet the users needs."
]
}
},
"capabilities": {
"confirmation": {
"type": "AdaptiveCard",
"title": "Search Properties",
"body": "Search for properties matching your criteria?",
"isNonConsequential": true
},
"response_semantics": {
"data_path": "$.properties",
"properties": {
"title": "$.address",
"subtitle": "$.price",
"url": "$.listingUrl",
"thumbnail_url": "$.imageUrl"
},
"static_template": {
"file": "./adaptivecards/property-card.json"
}
},
"security_info": {
"data_handling": [
"GetPublicData",
"GetPrivateData"
]
}
}
},
{
"name": "saveSearch",
"description": "Save a search for properties for sale",
"parameters": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city to search in"
},
"bedrooms": {
"type": "number",
"description": "The number of bedrooms"
}
},
"required": [
"city"
]
},
"returns": {
"type": "string",
"description": "The unique ID for the saved search"
},
"states": {
"responding": {
"description": "`saveSearch` returns a unique ID that identifies the newly saved search.",
"instructions": [
"Examine the output of the `saveSearch` function.",
"Extract the unique ID integer from the output and include it in your response to the user."
]
}
},
"capabilities": {
"security_info": {
"data_handling": [
"ResourceStateUpdate"
]
}
}
},
{
"name": "deleteSavedSearch",
"description": "Delete a previously saved search",
"parameters": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The unique ID of the saved search"
}
},
"required": [
"id"
]
},
"returns": {
"type": "string",
"description": "True if the saved search was deleted, false otherwise"
},
"capabilities": {
"confirmation": {
"type": "AdaptiveCard",
"title": "Delete Saved Search",
"body": "Are you sure you want to delete this saved search?"
},
"security_info": {
"data_handling": [
"ResourceStateUpdate"
]
}
}
},
{
"name": "getWeather",
"description": "Get current weather information for a location using MCP server"
},
{
"name": "FillColor",
"description": "FillColor changes a single cell location to a specific color.",
"parameters": {
"type": "object",
"properties": {
"Cell": {
"type": "string",
"description": "A cell location in the format of A1, B2, etc.",
"default": "B2"
},
"Color": {
"type": "string",
"description": "A color in hex format, e.g., #30d5c8",
"default": "#30d5c8"
}
},
"required": [
"Cell",
"Color"
]
},
"returns": {
"type": "string",
"description": "A string indicating the result of the action."
},
"states": {
"reasoning": {
"description": "`FillColor` changes the color of a single cell based on the grid location and a color value.",
"instructions": "The user will pass ask for a color that isn't in the hex format needed in most cases, make sure to convert to the closest approximation in the right format."
},
"responding": {
"description": "`FillColor` changes the color of a single cell based on the grid location and a color value.",
"instructions": "If there is no error present, tell the user the cell location and color that was set."
}
}
}
],
"runtimes": [
{
"type": "OpenApi",
"auth": {
"type": "none"
},
"run_for_functions": [
"getListings",
"saveSearch",
"deleteSavedSearch"
],
"spec": {
"url": "http://contoso.com/openapi.yaml"
}
},
{
"type": "LocalPlugin",
"run_for_functions": [
"FillColor"
],
"spec": {
"local_endpoint": "Microsoft.Office.Addin"
}
},
{
"type": "RemoteMCPServer",
"auth": {
"type": "none"
},
"run_for_functions": [
"getWeather"
],
"spec": {
"url": "https://weather.contoso.com/mcp",
"mcp_tool_description": {
"tools": [
{
"name": "getWeather",
"description": "Get current weather for a location",
"inputSchema": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state/country"
}
},
"required": [
"location"
]
}
}
]
}
}
}
],
"logo_url": "http://contoso.com/logo.png",
"contact_email": "contact@contoso.com",
"legal_info_url": "https://contoso.com/legal/"
}