Skip to main content
Glama

Turn a photo into a table

photo_to_sheet

Use this when the user has a photo of a receipt, a notebook page, a shop shelf, a chat screenshot with orders, a timesheet, an expense list or a printed log and wants it as a table or spreadsheet. Pass the attached photo as file, or image_url (a public https link), or image_base64; add hint when the user says which columns they want. Returns the rows and columns in the page's own language with numbers written plainly, the totals written on the page, the cells that were hard to read, sum checks (quantity x price, column total, tax, row totals) that flag a wrong sum on the paper, CSV text, and links to a printable page and CSV file kept for 24 hours. It copies what is visible and never invents values. Not for photos of people or scenery.

Input Schema

NameRequiredDescriptionDefault
fileNoThe photo the user attached in the chat.
hintNoOptional: what the content is or which columns the person wants, for example 'stock count, item and quantity only'.
image_urlNoA public https link to one JPEG, PNG, WebP or HEIC image, up to 8 MB.
image_base64NoThe image bytes as base64 (a data: URL is accepted), up to 8 MB.

Output Schema

NameRequiredDescriptionDefault
csvYes
kindYes
rowsYes
linksYes
notesYes
titleYes
checksYes
noticeYes
sourceYes
statusYes
totalsYes
columnsYes
messageYes
unclearYes
currencyYes
transcriptYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say non-readonly, non-destructive, non-idempotent, open-world) by disclosing that sum checks are performed and flagged, unreadable cells are surfaced, values are copied and never invented, and generated files are retained only 24 hours — exactly the retry/expiry context an agent needs given non-idempotency. It also reveals the multi-format output (rows/columns, totals, CSV text, links).

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 trigger condition is front-loaded and the exclusion is last, which is good ordering. The second sentence is a long run-on enumerating seven return elements, much of which duplicates the existing output schema, so it is slightly heavier than necessary.

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?

For a tool with nested input objects, four params, annotations and an output schema, the description covers triggering, input selection, exclusions, and the non-obvious behaviors (24-hour retention, no-invention guarantee). The exhaustive return enumeration is partly redundant with the output schema, which is the only real slack.

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 100%, so the baseline is 3; the description earns above that by telling the agent that exactly one of file / image_url / image_base64 must be supplied and by prescribing when to add hint ("when the user says which columns they want"). It does not restate size/format limits, but those are already in 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?

States a specific transformation (photo of a receipt/notebook/timesheet → table/spreadsheet) with a concrete list of source artifacts, so the agent can instantly match the user's situation. The photo-input framing cleanly separates it from the modality siblings text_to_sheet and voice_to_sheet without needing to name them.

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?

"Use this when the user has a photo of ... and wants it as a table" gives an explicit trigger, and "Not for photos of people or scenery" gives an explicit exclusion. However, it never names the sibling tools (text_to_sheet, voice_to_sheet) or states the condition that would route to them, so the alternative selection is only implied by modality.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.