List shards
list_shardsRetrieve a detailed list of cluster shards including primary/replica role, state, document count, store size, and hosting node. Optionally filter by index name or pattern.
Instructions
List the cluster's shards with their primary/replica role, state, document count, store size, and hosting node (equivalent to _cat/shards). The docs and store columns come back null without the cluster "monitor" privilege; there is no lower-privilege source for per-shard rows, so a missing privilege surfaces as an error.
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": "list_shards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Optional index name or pattern to filter the shards |