Skip to main content
Glama

Agent Knowledge MCP

index_document

Index documents into Elasticsearch with schema validation and duplicate prevention, enhancing knowledge management and search efficiency.

Instructions

Index a document into Elasticsearch with optional schema validation and intelligent duplicate prevention

Input Schema

NameRequiredDescriptionDefault
doc_idNoOptional document ID - if not provided, Elasticsearch will auto-generate
documentYesDocument data to index as JSON object
indexYesName of the Elasticsearch index to store the document
validate_schemaNoWhether to validate document structure for knowledge base format

Input Schema (JSON Schema)

{ "properties": { "doc_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional document ID - if not provided, Elasticsearch will auto-generate", "title": "Doc Id" }, "document": { "additionalProperties": true, "description": "Document data to index as JSON object", "title": "Document", "type": "object" }, "index": { "description": "Name of the Elasticsearch index to store the document", "title": "Index", "type": "string" }, "validate_schema": { "default": true, "description": "Whether to validate document structure for knowledge base format", "title": "Validate Schema", "type": "boolean" } }, "required": [ "index", "document" ], "type": "object" }

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/itshare4u/AgentKnowledgeMCP'

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