Raw Elasticsearch request
es_requestExecute raw Elasticsearch API calls to access endpoints outside standard tool coverage, including cluster health, aliases, and index resolution. Supports GET, HEAD, and search-shaped POST in read-only mode.
Instructions
Escape hatch for Elasticsearch APIs the other tools do not cover, e.g. "_cluster/health", "_cat/aliases?format=json", "_resolve/index/logs-*". In read-only mode only GET/HEAD and search-shaped POST paths are permitted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "es_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body, for methods that take one | |
| path | Yes | Elasticsearch path without leading slash, e.g. "_cluster/health" | |
| method | No | Elasticsearch HTTP method | GET |