Create or update a mapping
create_mappingAdd or update index mappings, creating the index when missing. Apply field properties while respecting that existing field types cannot be changed.
Instructions
Add or update fields on an index, creating the index if it does not exist. Elasticsearch cannot change the type of an existing field.
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>",
"mappings": "<mappings>"
},
"name": "create_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name | |
| mappings | Yes | Mapping to apply, e.g. { properties: { tags: { type: 'keyword' } } } |