allocation_explain
Analyze why Elasticsearch shards are unassigned or remain on specific nodes to identify allocation issues and optimize cluster performance.
Instructions
Explain why a shard is unassigned or why it remains on its current node.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "allocation_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Index name | |
| shard | No | Shard number | |
| primary | No | Whether to explain primary (true) or replica (false) |