get_mappings
Retrieve field names and types for an Elasticsearch index or pattern before writing search or ES|QL queries to ensure accurate field references.
Instructions
Get the field names and types of an index or pattern. Read them before writing a search or ES|QL query.
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": "get_mappings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes |