Skip to main content
Glama
uuina

Mistral OCR MCP Server

by uuina

ocr_url_to_markdown_file

Extract text from documents via public URL using Mistral OCR and save as Markdown file. Supports page ranges, table formatting, and image extraction.

Instructions

OCR 公网 URL 指向的文件并将生成的 Markdown 保存至磁盘。

默认使用 "mistral-ocr-latest" 模型。
默认不提取图片。若需提取,需设置 include_images=True。

可调参数:
- url (str): 必填,目标文件或图片的公网 URL 地址。
- pages (str, 默认 ""): 指定需要提取的页码范围(如 "0-3"),为空表示提取所有页面。
- output_dir (str, 默认 ""): 指定保存 Markdown 文件的目录路径,若为空则使用默认输出目录。
- table_format (str, 默认 "markdown"): 表格输出格式。可选 "markdown"、"html" 或 None。
- include_images (bool, 默认 False): 是否提取图片。若开启,将返回并保存图片信息。
- extract_header (bool, 默认 False): 是否专门解析并提取页眉。
- extract_footer (bool, 默认 False): 是否专门解析并提取页脚。
- use_cache (bool, 默认 True): 是否启用缓存,已处理过的内容直接返回缓存路径。
- image_limit (int, 默认 0): 限制单次提取的最大图片数量。
- image_min_size (int, 默认 0): 设置提取图片的最小尺寸限制(像素)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
pagesNo
use_cacheNo
output_dirNo
image_limitNo
table_formatNomarkdown
extract_footerNo
extract_headerNo
image_min_sizeNo
include_imagesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided. The description discloses default model ('mistral-ocr-latest'), image extraction behavior, caching, and parameter effects, offering moderate transparency. Missing details on file overwrite or error behavior.

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?

The description is structured with a brief summary followed by a well-organized parameter list. It is informative without excessive verbosity, though the parameter section could be slightly more concise.

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?

Given an output schema exists (not shown), the description adequately covers core functionality and parameters. However, it lacks details on error handling, authentication, or disk behavior, which would improve completeness.

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

Parameters5/5

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

The description compensates for 0% schema coverage by explaining each of the 10 parameters with type, default, and purpose in Chinese, providing clear meaning beyond the schema.

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 the action ('OCR') and resource ('公网 URL 指向的文件') and output ('生成的 Markdown 保存至磁盘'), distinguishing it from siblings like ocr_from_url which likely returns text.

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 provides default model and parameter details but does not explicitly guide when to use this tool over siblings like ocr_from_url or ocr_to_markdown_file. Usage is implied but not contrasted.

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/uuina/mistral-ocr-mcp'

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