Skip to main content
Glama

upload_file

Upload files to containers for parsing, chunking, embedding, and search indexing. Supports binary files via base64 encoding or text-based files with raw text input.

Instructions

Upload a file to a container. The file will be parsed, chunked, embedded, and made searchable. Provide either 'content' (base64) or 'textContent' (raw text), not both.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
containerIdYesContainer ID or name
contentNoBase64-encoded file content. For binary files (PDF, DOCX, images). Mutually exclusive with textContent.
textContentNoRaw text content for text-based files (Markdown, TXT, CSV, JSON, etc.). Mutually exclusive with content.
fileNameNoOriginal file name with extension
pathNoDestination folder path (e.g., '/docs/2026/')
strategyNoChunking strategy: Semantic, FixedSize, or Recursive. Default: Semantic

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/Destrayon/Connapse'

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