Skip to main content
Glama

ingest_document

Load, segment, and index documents for search by processing txt, md, pdf, epub, and html files. Automatically detects chapters and sections to prepare content for efficient retrieval.

Instructions

Load, segment, and index a document for search.

Supports txt, md, pdf, epub, and html formats. Automatically detects chapters and sections.

Args: path: Absolute path to the document file. title: Optional title for the document (defaults to filename). chunk_size: Target size in words for each chunk (default: 2000). overlap: Number of words to overlap between chunks (default: 100). force: Force re-indexing even if document already exists.

Returns: Ingestion result with document ID and structure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
titleNo
chunk_sizeNo
overlapNo
forceNo

Latest Blog Posts

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/Rixmerz/bigcontext_mcp'

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