Skip to main content
Glama

extract_table_from_image

Extract table data from images and output as structured JSON, Markdown, or CSV.

Instructions

Extract visible table data from an image as structured JSON, Markdown, or CSV-oriented output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNo
file_idNofile_id returned by PUT /upload. Preferred over image_base64 to avoid corruption of large base64 in the tool-call path. Persistent across restarts, content-deduplicated.
mime_typeNoMIME type. Required with image_base64; ignored (uses stored value) with file_id.image/png
image_base64NoRaw base64-encoded image bytes, without a data: URL prefix. Prefer file_id for large images.
output_formatNojson
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It discloses only that the tool extracts visible table data into structured formats, but it omits important behavioral traits such as limitations on table complexity, return value structure, or how the tool handles corrupt/malformed images. The qualifier 'visible' hints at a constraint (ignoring hidden data), which is useful, but overall transparency is minimal.

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 a single, front-loaded sentence with no fluff, which is syntactically concise. However, given the tool's five parameters and the need to disambiguate from siblings, the brevity leaves important gaps. Still, it earns a solid score for being clear and direct.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five parameters, no annotations, and no output schema, the description needs to carry substantial context. It only states the core extraction behavior and output formats, failing to cover the meaning of the 'task' parameter, the file upload workflow, return data shape, or any limitations. The tool is simple enough that minimal context might suffice, but the missing task semantics and lack of alternative guidance make it incomplete.

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?

Schema description coverage is only 60%, so the description must compensate for undocumented parameters. The description mentions output formats, matching the output_format enum, but it does not explain the critical 'task' parameter at all, nor does it clarify the trade-offs between file_id and image_base64 beyond what is already in the schema. The free-form 'task' parameter remains entirely ambiguous.

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 ('visible table data from an image'), clearly distinguishing this tool from siblings like extract_text_from_image (which extracts raw text) and analyze_chart_image (which analyzes chart data). It also names the three output formats, making the tool's purpose concrete.

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?

The description gives no guidance on when to use this tool versus alternatives such as extract_text_from_image or analyze_chart_image. It does not state prerequisites (e.g., uploading the image first via create_upload_session) or explicitly exclude non-table images, leaving the agent to infer usage from the name alone.

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/xyun1996/ocular'

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