Bulk index documents
bulkIndex up to 1000 documents in one call, with immediate searchability by default. Per-document failures are reported individually without failing the entire request.
Instructions
Index up to 1000 documents in one call. The index is refreshed by default, so they are searchable immediately; per-document failures are reported without failing the call.
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>",
"documents": "<documents>"
},
"name": "bulk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Target index | |
| idField | No | Field whose value becomes the document _id. Omit to let Elasticsearch generate ids. | |
| refresh | No | Defaults to true, making documents searchable at once. Set false when loading many batches: forcing a refresh per batch is the expensive part. | |
| documents | Yes | Documents to index, at most 1000. Send more in successive batches. |