get_mapping
Retrieve an index mapping as a flattened field catalog with field paths and types, multi-fields, dynamic templates, and total field count—everything needed to write correct queries.
Instructions
Get the mapping for an index. Returns a flattened field catalog (field path -> type, including multi-fields like .keyword) which is what you need to write correct queries, plus dynamic templates and total field count. Set raw=true for the untouched mapping JSON.
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_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| index | Yes | ||
| field_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |