Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CACHE_TTLNoCache TTL in milliseconds (default: 5 minutes)300000
CACHE_SIZENoCache size in bytes (default: 100MB)104857600
CHUNK_SIZENoDefault lines per chunk500
CACHE_ENABLEDNoEnable/disable cachingtrue
MAX_FILE_SIZENoMaximum file size in bytes (default: 10GB)10737418240
OVERLAP_LINESNoOverlap between chunks10

Tools

Functions exposed to the LLM to take actions

NameDescription
read_large_file_chunk

Read a specific chunk of a large file with intelligent chunking based on file type. Automatically determines optimal chunk size.

search_in_large_file

Search for a pattern in a large file with context lines. Supports regex and case-sensitive search.

get_file_structure

Analyze file structure and get comprehensive metadata including line statistics, recommended chunk size, and samples from start and end.

navigate_to_line

Jump to a specific line in a large file with surrounding context lines. Highlights the target line.

get_file_summary

Get comprehensive statistical summary of a file including line stats, character stats, and word count.

stream_large_file

Stream a large file in chunks. Returns multiple chunks for processing very large files efficiently.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/willianpinho/large-file-mcp'

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