general_api_request
Execute custom HTTP API requests (GET, POST, PUT, DELETE) to Elasticsearch/OpenSearch endpoints. Use when dedicated tools for specific APIs are unavailable.
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
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | No | ||
method | Yes | ||
params | No | ||
path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"body": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Body"
},
"method": {
"title": "Method",
"type": "string"
},
"params": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Params"
},
"path": {
"title": "Path",
"type": "string"
}
},
"required": [
"method",
"path"
],
"type": "object"
}