Skip to main content
Glama

extract_from_images

Extract structured JSON data from images such as forms, receipts, and invoices. Provide an optional schema to control field names for precise output.

Instructions

Extract structured data (JSON) from one or more images: forms, receipts, IDs, tables, invoices, labels. Optional schema steers field names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageNoLocal file path, file:// URI, http(s) URL, data URL, or base64 image data
imagesNoOne or more images. Prefer this for multi-image chats: ["path/a.png", "path/b.png"] or [{source, label: "1"}, {source, label: "2"}]. Labels default to "1", "2", ...
promptNoExtra extraction instructions (locale, currency, etc.)
schemaNoOptional JSON schema or field list for structured extraction, e.g. {"title":string,"total":number}
mimeTypeNoOptional MIME type hint for a single bare-base64 `image` input, e.g. image/png
Behavior3/5

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

No annotations are provided, so the description carries the burden of behavioral disclosure. It does disclose a meaningful behavioral trait: 'Optional schema steers field names', indicating how the schema parameter affects output. However, it does not mention whether the tool is read-only, how images are handled, or any limitations or side effects, leaving gaps in transparency.

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 a single, concise sentence that immediately states the tool's core function and adds relevant examples. There is no wasted wording, and every clause contributes to understanding the tool's purpose and key behavior (schema steering).

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?

Given the tool has 5 parameters, no output schema, and no annotations, the description provides enough context for an agent to understand the primary use case and output type (JSON). The rich schema descriptions fill in parameter details, but the description could more explicitly describe the shape of the return value (e.g., object vs array) and any edge cases. Overall, it is adequately complete but not exhaustive.

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

Parameters3/5

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

The input schema provides 100% description coverage for all parameters, so the baseline is 3. The description adds a small amount of context by explaining that schema influences field names, but this is already implied in the schema's own description. No additional parameter-level meaning is provided beyond what the schema already covers.

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 uses a specific verb ('Extract') and resource ('images'), and clearly states the output is 'structured data (JSON)'. The enumeration of document types (forms, receipts, IDs, tables, invoices, labels) distinguishes it from sibling tools like describe_image or ocr_image, making the tool's unique purpose unambiguous.

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

Usage Guidelines4/5

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

The description provides clear context for when to use the tool by listing concrete document types (forms, receipts, IDs, tables, invoices, labels). However, it does not explicitly mention when not to use it or name alternative tools for different tasks, such as ocr_image or describe_image, so it stops short of full exclusion guidance.

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/RimunAce/mcp-six-eyes'

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