Link Search Menu Expand Document Documentation Menu

列出 MCP 工具

于 3.1 版本引入

这是一个实验性功能,不建议在生产环境中使用。有关功能进度的更新或如果您想留下反馈,请加入 OpenSearch 论坛上的讨论。

使用此 API 按名称列出所有基于模型上下文协议 (MCP) 的工具。

端点

GET /_plugins/_ml/mcp/tools/_list

请求示例

GET /_plugins/_ml/mcp/tools/_list

示例响应

OpenSearch 响应 MCP 工具列表

{
    "tools": [
        {
            "type": "WebSearchTool",
            "name": "GoogleSearchTool",
            "description": "This tool can be used to perform search via google engine and parse the content of the searched results",
            "attributes": {
                "input_schema": {
                    "type": "object",
                    "properties": {
                        "next_page": {
                            "description": "The search result's next page link. If this is provided, the WebSearchTool will fetch the next page results using this link and crawl the links on the page.",
                            "type": "string"
                        },
                        "engine": {
                            "description": "The search engine that will be used by the tool.",
                            "type": "string"
                        },
                        "query": {
                            "description": "The search query parameter that will be used by the engine to perform the search.",
                            "type": "string"
                        }
                    },
                    "required": [
                        "engine",
                        "query"
                    ]
                },
                "strict": false
            },
            "create_time": 1749864622040
        }
    ]
}
剩余 350 字符

有问题?

想贡献?