Skip to main content
Glama
0xnurrabby

mcp-omni-context

by 0xnurrabby

read_context_data - vision & file context dumper

read_context_data
Read-onlyIdempotent

Convert images, files, or zip archives into an ordered, LLM-ready text dump with OCR and file tree, skipping irrelevant and sensitive data.

Instructions

Extracts readable code/text from images, single files, or zip archives and returns a strictly-ordered, LLM-ready text dump with a file tree for archives. Images are analyzed sequentially; each one is wrapped in --- [Image Index X] Visual Analysis ---. When OPENAI_API_KEY (GPT-4o-mini) or GEMINI_API_KEY is set, images are resized with sharp to max 1024px and sent with detail: "low" (costs ~$0.001/image); on any API failure it silently falls back to local tesseract.js OCR. Pass an ordered items array; each entry is a local path string (file, directory, or .zip), a bare image name/filename, or an in-memory { name, base64 } object. If a referenced image path does not exist on disk, the freshest images from the system temp/clipboard/upload folders are auto-detected, so chat-attached screenshots work out of the box. Single files are line-truncated with a notice; archives get a directory Tree plus every code/text entry. Non-code folders (node_modules, .git, dist, build, .next, coverage, vendor, bin, obj), binary/media files, oversized entries, and sensitive files (.env, id_rsa, .pem, secrets., tokens) are skipped automatically. Output is capped at maxOutputChars characters; a summary footer reports truncation, errors, skipped counts, and estimated token usage. items ordering is always preserved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
skipBinaryNo
concurrencyNo
ocrLanguagesNoeng+ben
fileLineLimitNo
skipSensitiveNo
maxOutputCharsNo
includeFileTreeNo
ocrArchiveImagesNo
preProcessImagesNo
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint), the description discloses critical behaviors: fallback from API to local OCR, image resizing with sharp, truncation with a notice, automatic skipping of sensitive files, and a summary footer with error counts. This is rich behavioral context that annotations alone do not provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense paragraph but every sentence adds value: input types, fallback behavior, filtering rules, output format, and limits. It is appropriately sized for the tool's complexity, though a more structured layout would improve scannability; still, it is not bloated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (10 params, no output schema), the description provides a complete operational picture: input handling, ordering preservation, automated exclusions, truncation, error reporting, and token usage estimation. It even includes example formatting for image analyses, making it sufficient for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 0%, the description compensates by explaining the primary `items` parameter (accepts paths, bare names, or in-memory objects), and indirectly addresses others like `maxOutputChars` and `includeFileTree` ('archives get a directory Tree', 'Output is capped at maxOutputChars'). It does not cover all 10 parameters in detail, but enough for effective use.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a specific verb and resource: 'Extracts readable code/text from images, single files, or zip archives' and clearly defines the output as 'a strictly-ordered, LLM-ready text dump with a file tree for archives.' This distinguishes it from the sibling tool find_images by focusing on content extraction and reading rather than just locating images.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage context, such as 'Pass an ordered items array' and mentions auto-detection of images from temp/clipboard folders for chat-attached screenshots. However, it does not explicitly state when to avoid this tool or compare it to alternatives like find_images, so it earns a 4 rather than 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/0xnurrabby/mcp-omni-context'

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