Skip to main content
Glama

ocr_and_translate

One call: OCR an image, then translate every line into target_lang. Arabic-first OCR and manga-aware Japanese with right-to-left-aware layout, followed by LLM translation. Automatic source-language detection. Provide the image as base64. Ideal for reading foreign documents, signs, manga, or receipts end-to-end in a single step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoOptional key (nsk_live_...). Auto-provisioned if omitted.
target_langYesLanguage to translate into, as a name or code (e.g. English, ar, ja).
image_base64YesThe image encoded as base64 (a data: URI prefix is accepted and stripped).

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries full responsibility. It discloses the internal process (Arabic-first OCR, manga awareness, LLM translation, automatic source detection). However, it does not mention whether the tool has side effects, authentication requirements beyond the optional api_key, rate limits, or the nature of the operation (read-only vs. destructive). For a tool that processes user data, these gaps reduce transparency.

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?

The description is extremely concise: four sentences that front-load the core function, then add relevant details about OCR capabilities, automatic detection, input format, and ideal use cases. Every sentence serves a purpose without redundancy.

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

Completeness3/5

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

The description covers the input and process well but omits any description of the output (e.g., format of translated text, whether it includes bounding boxes, confidence scores). There is no output schema to compensate. Given the tool's moderate complexity (combining OCR and translation), the lack of output specification leaves the agent uncertain about what to expect.

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?

All three parameters have descriptions in the schema (100% coverage). The description adds value by clarifying that image_base64 can include a data URI prefix (which is stripped), that api_key is auto-provisioned if omitted, and that target_lang accepts names or codes. These details go beyond the schema descriptions, improving parameter understanding.

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 explicitly states the tool's function: 'One call: OCR an image, then translate every line into target_lang.' It clearly identifies the verb (OCR and translate), resource (image), and target language. The additional detail about Arabic-first and manga-aware OCR further distinguishes it from sibling tools like ocr_image or translate_text.

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 guidance on when to use the tool: 'Ideal for reading foreign documents, signs, manga, or receipts end-to-end in a single step.' While it does not explicitly mention when not to use it, the sibling tool names (ocr_image, translate_text) indirectly suggest alternatives. A more explicit exclusion would push this to 5.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose: key provisioning, structured extraction, usage checking, combined OCR+translation, plain OCR, and translation. No overlap that would confuse an agent.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with underscores (e.g., create_api_key, ocr_image, translate_text). Even the compound name 'ocr_and_translate' fits the pattern.

Tool Count5/5

With 6 tools, the server is well-scoped for an OCR service, covering key management, usage monitoring, multiple OCR modes, structured extraction, and translation without being over-fragmented.

Completeness4/5

The tool set covers core OCR workflows well, but lacks a tool for revoking API keys or listing existing keys, which is a minor gap for full lifecycle management.