Skip to main content
Glama

ocr_image

Extract text from images using pluggable OCR backends with automatic fallback across Windows OCR, RapidOCR, and Tesseract; returns full text plus optional line and word boxes.

Instructions

Recognize text in an image with pluggable OCR backends. backend=auto tries Windows built-in OCR, then RapidOCR, then Tesseract. Returns full text, per-line boxes/confidence and word boxes when available.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "image": "<image>"
    },
    "name": "ocr_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesLocal path, base64, data URI or http(s) URL
detailNoInclude line/word boxes; false returns text only
backendNoOCR engineauto
upscaleNoEnlarge small images 2x before recognition
languageNoWindows BCP-47 tag (zh-Hans-CN) or Tesseract lang (chi_sim+eng)
priorityNoOverride auto backend order

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden and does disclose the genuine behavioral trait here: the auto backend is a fallback chain, and richer output (line/word boxes, confidence) is conditional ('when available'). It omits failure behavior when all backends fail and whether remote image URLs are fetched, leaving some operational gaps.

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?

Three short sentences with the core action front-loaded, followed by the backend resolution rule and the return shape. No filler, no restatement of the tool name or title.

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?

An output schema exists, so the description need not fully specify return values, and it legitimately skips that burden. For a 6-parameter tool with no annotations, it covers the most consequential parameter (backend) and the output conditional, but leaves upscale and language behavior to the schema and says nothing about engine availability or error paths.

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?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning beyond the enum by defining the resolution order that 'auto' implies and by clarifying that box output is conditional. That is real semantic value added on top of the schema rather than a restatement.

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?

The description states a specific verb and resource ('Recognize text in an image') plus a distinguishing capability ('pluggable OCR backends'), which cleanly separates it from the qr_* siblings without ambiguity. It never explicitly contrasts itself with those siblings, so it stops just short of a 5.

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?

The description explains what backend=auto does internally (Windows built-in, then RapidOCR, then Tesseract), which implies when to leave the default in place. However, it gives no explicit guidance on when to pick a specific backend over auto, no prerequisites (e.g. which engines must be installed), and no conditions under which to prefer a sibling tool.

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