Skip to main content
Glama

Image to text (OCR)

ocr-image

Read the text from a photo or screenshot, or make a searchable PDF. Accepts jpg, jpeg, png, webp, gif, tif, tiff, avif, svg. Returns the result file.

Input Schema

NameRequiredDescriptionDefault
filesYesAccepts jpg, jpeg, png, webp, gif, tif, tiff, avif, svg; at most 50 MB in total.
optionsNoOptional settings; omitted ones use their default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint false, destructiveHint false, openWorldHint false). The description adds useful context: accepted image formats, that it returns a result file, and that it can produce a searchable PDF. It lacks file-count and size limits, but there is no contradiction.

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

Conciseness5/5

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

Two tightly written sentences, front-loaded with the core action and followed by format and return details. Every sentence contributes without redundancy.

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

Completeness4/5

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

Given the fully documented nested schema and annotations, the description is largely complete for selecting and invoking the tool. It omits details like the 10-file limit, 50 MB total, and output/language defaults, but those are already covered by the schema.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents files, upload_id, content_base64, and options. The description adds little parameter-specific meaning beyond repeating accepted formats and the result-file return.

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

Purpose4/5

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

States a specific verb and resource: "Read the text from a photo or screenshot" plus the alternative searchable PDF output. The accepted image formats make the image-focused scope clear, but the description does not explicitly name the sibling ocr-pdf alternative.

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

Usage Guidelines3/5

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

Usage is implied by "photo or screenshot" and the image format list, but there is no explicit when-to-use guidance versus ocr-pdf or pdf-to-text, and no stated exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources