Create an index
create_indexCreates a new Elasticsearch index with optional mappings and settings. Errors if the index already exists; use mapping creation to add fields to an existing index.
Instructions
Create a new index. Fails if it already exists — use create_mapping to add fields to an existing one.
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": "create_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name | |
| mappings | No | Field mappings, e.g. { properties: { title: { type: 'text' } } } | |
| settings | No | Index settings, e.g. number_of_shards, number_of_replicas |