GenericOpenSearchApiTool
Access any OpenSearch API endpoint with custom HTTP methods, paths, query parameters, bodies, and headers for flexible request control.
Instructions
A flexible tool for calling any OpenSearch API endpoint. Supports all HTTP methods with custom paths, query parameters, request bodies, and headers. Use this when you need to access OpenSearch APIs that don't have dedicated tools, or when you need more control over the request. Leverages your knowledge of OpenSearch API documentation to construct appropriate requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The API endpoint path (e.g., "/_search", "/_cat/indices", "/my_index/_doc/1"). Should start with "/". | |
| method | No | HTTP method to use (GET, POST, PUT, DELETE, HEAD, PATCH) | GET |
| query_params | No | Query parameters to include in the request URL as key-value pairs | |
| body | No | Request body for GET/POST/PUT requests. Can be a JSON object, string, or None | |
| headers | No | Additional HTTP headers to include in the request |