List MCP Tools API
출처: 문서
본문
MCP 도구 목록 조회 API
3.1에 도입됨 {: .label .label-purple }
이 API를 사용하면 Model Context Protocol(MCP) 기반 도구를 이름별로 모두 조회할 수 있어요.
엔드포인트
GET /_plugins/_ml/mcp/tools/_list
요청 예시
GET /_plugins/_ml/mcp/tools/_list
{% include copy-curl.html %}
응답 예시
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
}
]
}