Skip to main content
Glama

ocr_image

Extract text from images using optical character recognition. Supports PNG, JPEG, SVG with adjustable detail and model modes for standard or deep document understanding.

Instructions

Extract text from an image using Florence-2 OCR.

Args: image_path: Absolute or relative path to the image file (supports PNG, JPEG, SVG). detail_level: 'normal' for plain OCR, 'high' for OCR with region info. model_mode: 'fast' for Florence-2 (default), 'deep' for MiniCPM-V 4.6 (better document understanding).

Returns: Dict with extracted text and optionally bounding regions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_pathYes
model_modeNofast
detail_levelNonormal

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries full burden. It discloses return structure (Dict with text and optional regions) and model behavior for different modes, but does not explicitly state that the tool has no side effects, requires no authentication, or any other behavioral constraints.

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 highly concise, using a clear Args/Returns structure that is easy to parse. Every sentence adds value, and there is no redundant information. It is appropriately sized for the tool's complexity.

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?

The description covers input parameters and return values adequately. It acknowledges the optional bounding regions for high detail. However, it does not address error handling or the choice between this and sibling OCR tools, which would be helpful for a complete picture.

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?

Despite 0% schema description coverage, the description adds meaningful context for each parameter: image_path explains supported formats, detail_level explains the difference between normal and high, and model_mode specifies the underlying models and their strengths. This compensates well for the lack of schema descriptions.

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 clearly states 'Extract text from an image using Florence-2 OCR', providing a specific verb and resource. However, it does not differentiate from the sibling tool 'ocr_paddle', which also performs OCR, leaving some ambiguity about when to use this specific tool.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives. The description lacks context on scenarios where this tool should be preferred over sibling tools like 'ocr_paddle' or 'parse_document', and does not mention any prerequisites or exclusions.

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/Veedubin/Videre-MCP'

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