general_api_request
Send custom HTTP requests to any Elasticsearch or OpenSearch API endpoint, supporting methods, paths, parameters, and bodies when no dedicated tool exists. Resolve unhandled cluster operations directly.
Instructions
Perform a general HTTP API request. Use this tool for any Elasticsearch/OpenSearch API that does not have a dedicated tool.
Args: method: HTTP method (GET, POST, PUT, DELETE, etc.) path: API endpoint path params: Query parameters body: Request body cluster: Optional cluster name. Uses the default cluster if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| method | Yes | ||
| params | No | ||
| cluster | No |