Skip to main content
Glama

vision.ocr

Extract text from local images offline or capture the screen to read on-screen content via OCR.

Instructions

OCR(懒加载 rapidocr_onnxruntime;未安装则明确报错);path=本地图片离线 OCR,缺省截屏

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo本地图片路径(离线模式,无需设备连接)
regionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses lazy-loading of rapidocr_onnxruntime, an explicit error when the dependency is missing, offline/no-device-connection operation, and the screenshot fallback. It omits performance/rate characteristics, but the operational behaviors that matter for invocation are present.

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?

Dense and front-loaded with the core purpose, using semicolons to pack dependency, error, and default behaviors into one line. No wasted text, though the heavy parenthetical phrasing slightly compresses readability.

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?

For a 2-param tool with no output schema, the description covers purpose, dependency loading, error behavior, offline mode, and default input. It is incomplete on the region parameter and says nothing about the return format (recognized text structure), leaving real gaps.

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

Parameters2/5

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

The path parameter is clarified (offline local image, defaults to screenshot when omitted), adding value beyond the schema. But the region parameter (array of integers, e.g. a crop box) is undocumented in both schema and description, leaving half the parameters without meaning at 50% coverage.

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 gives a specific verb+resource (OCR on a local image), and clarifies the default behavior when path is omitted (screenshot). It does not explicitly differentiate itself from vision-adjacent siblings like vision.vlm or vision.ask, which also extract information from images, so it stops short of full sibling disambiguation.

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: use it to OCR a local image, or a screenshot by default. The description notes offline mode requires no device connection, which hints at when this is preferable. However, there is no explicit when/when-not guidance or named alternative (e.g. use vision.vlm for semantic understanding instead of raw text).

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