index_document
Add or update documents in an Elasticsearch index. Specify the index name, document data, and optional ID to manage data efficiently with the MCP Server.
Instructions
Creates or updates a document in the index.
Args:
index: Name of the index
document: Document data
id: Optional document ID
Input Schema
Name | Required | Description | Default |
---|---|---|---|
document | Yes | ||
id | No | ||
index | Yes |
Input Schema (JSON Schema)
{
"properties": {
"document": {
"additionalProperties": true,
"title": "Document",
"type": "object"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"index": {
"title": "Index",
"type": "string"
}
},
"required": [
"index",
"document"
],
"type": "object"
}