Skip to content

Support a tool that can call all Elasticsearch APIs #24

Open
@weizijun

Description

@weizijun

In the AI Assistent,the elasticsearch tool can call all Elasticsearch APIs, the prompt is:

{
    "name": "elasticsearch",
    "description": "Call Elasticsearch APIs on behalf of the user. Make sure the request body is valid for the API that you are using. Only call this tool when the user has explicitly requested it.",
    "parameters": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "The HTTP method of the Elasticsearch endpoint",
          "enum": [
            "GET",
            "PUT",
            "POST",
            "DELETE",
            "PATCH"
          ]
        },
        "path": {
          "type": "string",
          "description": "The path of the Elasticsearch endpoint, including query parameters"
        },
        "body": {
          "type": "object",
          "description": "The body of the request"
        }
      },
      "required": [
        "method",
        "path"
      ]
    }
  }

Will MCP Server add this tool?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions