Skip to main content
Glama

Extract Structured Tables from Image or Scan (Image to Excel)

image_to_excel
Read-onlyIdempotent

Extract tables from photos, screenshots, scanned sheets, or PDFs into structured headers and rows ready for Excel or CSV.

Instructions

Zero-retention table extraction optimized for photos, screenshots, and scanned sheets (POST /v1/image-to-excel, 2 credits per succeeded image/page, failed pages automatically refunded). Returns deterministic headers[] and rows[][] arrays ready for Excel or CSV.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>"
    },
    "name": "image_to_excel"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesLocal file path, base64 string, or data URL of the table image or PDF (JPG/PNG/WebP/PDF, max 10 MB).
modeNoExtraction mode: "tables" (default), "auto", or "json".
pagesNoOptional 1-based page range when submitting a multi-page PDF.
schemaNoOptional custom JSON schema object.
stitch_tablesNoWhether to stitch multi-page tables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds genuinely non-obvious traits beyond that: zero data retention, a cost of 2 credits per succeeded image/page, automatic refunds for failed pages, and a deterministic output shape — all useful context an agent cannot infer from structured fields.

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?

Two tight sentences that front-load the value proposition and keep billing/endpoint details in a parenthetical rather than burying the main action. Dense but no wasted sentences; the parenthetical pricing cluster is the only mildly cluttered element.

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

Completeness5/5

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

With no output schema, the description compensates by describing the return format (deterministic headers[] and rows[][]), the cost model, the failure/refund behavior, and the retention policy. For a read-only extraction endpoint with a fully documented input schema, an agent has everything needed to call it and interpret results.

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?

Schema description coverage is 100%, so all five parameters (file, mode, pages, schema, stitch_tables) are self-documented with types, enums, and constraints. The description adds no parameter-level meaning — nothing about when to set mode, how page ranges interact with stitch_tables, or what the custom schema does — so baseline 3 applies.

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 states a specific verb and resource: table extraction from photos/screenshots/scanned sheets into Excel-ready headers[] and rows[][] arrays. It is immediately clear what the tool does, but it never names or contrasts a sibling (e.g., extract_pdf or scan_document), leaving overlap resolution to the agent.

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?

It gives an implicit input-fit cue ('optimized for photos, screenshots, and scanned sheets'), which helps an agent choose it for image sources. However, there is no explicit when-not-to-use statement or pointer to an alternative for digital PDFs or other document types, so guidance remains implied rather than actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.