search
Execute Elasticsearch queries using Query DSL for full-text search, filtering, aggregations, and sorting to retrieve data from specified indices.
Instructions
Execute a search query using Elasticsearch Query DSL. Supports full-text search, filters, aggregations, and sorting.
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": {
"index": "<index>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name or pattern (e.g., "logs-*") | |
| query | No | Elasticsearch Query DSL object | |
| size | No | Number of results to return | |
| from | No | Offset for pagination | |
| sort | No | Sort criteria | |
| _source | No | Fields to include/exclude | |
| aggs | No | Aggregations |