Skip to main content
Glama

ocr_by_url

Extract text from an image at a given URL using OCR. Supports various output formats and preprocessing like auto-enhance, rotation, and binarization.

Instructions

对 URL 图像执行 OCR 识别。

Args:
    image_url: 图像的 HTTP/HTTPS URL
    output_format: 输出格式 (plain/json/markdown/structured)
    use_cache: 是否使用 URL 缓存
    auto_enhance: 自动增强图像对比度和锐度
    rotate: 自动旋转图像(基于 EXIF)
    binarize: 二值化图像

Returns:
    OCR 识别结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rotateNo
binarizeNo
image_urlYes
use_cacheNo
auto_enhanceNo
output_formatNojson
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses behavioral traits like rotation based on EXIF, binarization, and auto-enhancement, which adds value. However, it does not mention potential side effects, error handling, redirect behavior, or details of the return result beyond a vague 'OCR recognition result.'

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 efficiently organized as an Args list, with each line earning its place. It is front-loaded with the main purpose and avoids redundant filler, maintaining a compact and scannable format.

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?

While the parameter details are solid, the absence of an output schema means the description should clarify return value structure or formats. It only states 'OCR recognition result' without explaining differences between output formats or error cases, leaving some contextual gaps for a 6-parameter tool.

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 0%, so the description fully compensates by explaining each parameter's purpose, including enumerating output_format options (plain/json/markdown/structured). This goes well beyond the schema's bare types and defaults, adding meaningful context for correct invocation.

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 clearly states 'Perform OCR recognition on URL images' using a specific verb and resource. It distinguishes from sibling tools like ocr_by_path and ocr_by_content by explicitly targeting URL-based images.

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 usage context is implied via the tool name and description (use for images accessible via URL), but there is no explicit guidance on when to prefer this over alternatives or any exclusions. It lacks the explicit alternative naming seen in high-quality examples.

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/bitfarer/rapidocr-mcp'

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