Skip to main content
Glama

octodet-elasticsearch-mcp

add_document

Enables insertion of a new document into a specified Elasticsearch index, allowing optional custom ID or auto-generation.

Instructions

Add a new document to a specific Elasticsearch index

Input Schema

NameRequiredDescriptionDefault
documentYesDocument body to index
idNoOptional document ID (if not provided, Elasticsearch will generate one)
indexYesName of the Elasticsearch index

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "document": { "additionalProperties": {}, "description": "Document body to index", "type": "object" }, "id": { "description": "Optional document ID (if not provided, Elasticsearch will generate one)", "type": "string" }, "index": { "description": "Name of the Elasticsearch index", "minLength": 1, "type": "string" } }, "required": [ "index", "document" ], "type": "object" }
Install Server

Other Tools from octodet-elasticsearch-mcp

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Octodet/elasticsearch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server