Skip to main content
Glama

Build a receipt spreadsheet

build_receipt_spreadsheet

Turn receipts you have read into an Excel (.xlsx), CSV, Xero or QuickBooks import file, with VAT split into one column per rate. Returns totals per currency and VAT rate, warnings where net + VAT doesn't match the total, and a download link valid for 24 hours. Up to 200 receipts per call.

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": {
      "receipts": "<receipts>"
    },
    "name": "build_receipt_spreadsheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoxlsx (Excel), csv, xero (bank statement CSV) or quickbooks (bank upload CSV)xlsx
csvStyleNoFor csv only: standard = comma-separated with dot decimals; european = semicolons with comma decimals (Excel in most EU countries)standard
receiptsYesThe receipts you have read, one entry per receipt (1 to 200). Copy amounts as printed; never guess a VAT rate
totalsCurrencyNoAlso convert every total to this currency at the ECB rate of the receipt date, e.g. EUR
includeLineItemsNoxlsx: add a Line items sheet; csv: one row per line item

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / receipts / description
      Added value: +"The receipts you have read, one entry per receipt (1 to 200). Copy amounts as printed; never guess a VAT rate"
    • addedInput schema / properties / receipts / items / properties / lineItems / description
      Added value: +"The receipt's lines, if you need them in the file (see includeLineItems). Leave out otherwise"
    • addedInput schema / properties / receipts / items / properties / lineItems / items / properties / description / description
      Added value: +"The line as printed, e.g. Cappuccino"
    • addedInput schema / properties / receipts / items / properties / lineItems / items / properties / qty / description
      Added value: +"Quantity; 1 if the receipt shows none"
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With annotations only declaring readOnly=false and non-destructive, the description carries real weight: it discloses the return payload (totals per currency and VAT rate, mismatch warnings, 24-hour download link) and a hard batch limit. That is exactly the context an agent needs to plan a call and handle the expiring link.

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?

Three sentences, each front-loaded with the highest-value information: what it produces, what comes back, and the batch ceiling. No filler or restatement of the title.

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?

No output schema exists, so the description usefully covers return contents and link expiry, and the 200-receipt limit mirrors the schema's maxItems. It stops short of clarifying persistence of generated files or how xero/quickbooks bank-CSV outputs differ in practice.

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 coverage is 100%, so format, csvStyle, totalsCurrency, includeLineItems and the nested receipt fields are already documented in structured data. The description only restates the VAT-splitting idea and the 200-item ceiling, adding no syntax or edge-case 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?

Specific verb and resource: 'Turn receipts you have read into an Excel (.xlsx), CSV, Xero or QuickBooks import file.' The output formats and the VAT-per-column behavior make it unmistakably the export step, distinct from scanning or currency conversion siblings.

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?

'Receipts you have read' positions this as the step after receipt reading, implicitly contrasting with scan_receipts_on_website, and the 200-receipt cap sets a scale boundary. It never names an alternative or states when to use convert_currency instead, so the routing is implied rather than explicit.

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.

Resources