Create or update an index template
create_index_templateCreate or update a composable index template to define settings, mappings, and aliases for new indices matching wildcard patterns. This solves configuring index structure before creation.
Instructions
Create or update a composable index template (Elasticsearch 7.8+). It applies only to indices created after it, never to existing ones.
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": {
"name": "<name>",
"indexPatterns": "<indexPatterns>",
"template": "<template>"
},
"name": "create_index_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name | |
| version | No | Version number, for your own tracking | |
| priority | No | Precedence when several templates match; higher wins | |
| template | Yes | What to apply: { settings, mappings, aliases } | |
| indexPatterns | Yes | Index wildcards the template applies to, e.g. ['logs-*'] |