Get index mappings
es_get_mappingsRetrieve field mappings for an index or index pattern before writing queries, ensuring correct field names and types. Falls back to _field_caps when direct mapping access is unavailable.
Instructions
Return the field mappings for an index or index pattern. Read this before writing a query so field names and types are correct. Falls back to _field_caps when the credential may not read _mapping directly.
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": "es_get_mappings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index or pattern, e.g. "logs-nlp-2026.08" |