GenericOpenSearchApiTool
Call any OpenSearch API endpoint with custom HTTP methods, paths, query parameters, and request bodies. Provides full control for operations not covered by dedicated tools.
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 |
|---|---|---|---|
| body | No | Request body for GET/POST/PUT requests. Can be a JSON object, string, or None | |
| 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 |
| headers | No | Additional HTTP headers to include in the request | |
| aws_region | No | AWS region for IAM/Serverless authentication. | |
| aws_iam_arn | No | IAM role ARN for role-based authentication. | |
| aws_profile | No | AWS profile name for authentication. | |
| query_params | No | Query parameters to include in the request URL as key-value pairs | |
| opensearch_url | Yes | OpenSearch endpoint URL. | |
| opensearch_no_auth | No | If true, connect without authentication. | |
| opensearch_timeout | No | Connection timeout in seconds. | |
| opensearch_password | No | Password for basic authentication. | |
| opensearch_username | No | Username for basic authentication. | |
| opensearch_ssl_verify | No | If false, disable SSL certificate verification. | |
| aws_opensearch_serverless | No | If true, use OpenSearch Serverless service. |