bulk_index
Index many documents into one Elasticsearch index in a single request to reduce indexing time and network overhead. Define an optional id field for document IDs; receive success count and first error details.
Instructions
Bulk index many documents into one index in a single request. Pass documents as a JSON array of objects; each becomes an index action. Optional id_field names a field to use as the document id. Reports how many succeeded and the first few errors. Much faster than index_document in a loop. Requires writes enabled and confirm=true.
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_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| confirm | No | ||
| refresh | No | ||
| id_field | No | ||
| documents | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |