Skip to main content
Glama

Create invoice spreadsheet

create_invoice_spreadsheet

Use this when the user wants invoices, bills or receipts put into an Excel spreadsheet. Builds an .xlsx workbook with one row per invoice, one row per line item, a sheet of arithmetic, missing-field and duplicate checks, and totals per currency, and returns a download link that works for 24 hours.

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": {
      "invoices": "<invoices>"
    },
    "name": "create_invoice_spreadsheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional name for the file, e.g. "October supplier invoices".
invoicesYesEvery invoice, one entry each, with values exactly as printed on the document. Use null for anything not printed or not legible; never estimate.

Output Schema

NameRequiredDescriptionDefault
checksYes
totalsYes
filenameYes
expires_atYesWhen the link stops working and the file is deleted.
check_countYesAll findings; every one is on the Checks sheet.
download_urlYesLink to the .xlsx file. Give it to the user unchanged.
invoice_countYes
line_item_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / invoices / items / properties / customer
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 300,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Who the invoice is billed to, if printed."
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With readOnlyHint=false already signaling a creation operation, the description adds real value beyond annotations: it enumerates what the workbook contains (per-invoice rows, per-line-item rows, arithmetic/missing-field/duplicate check sheets, per-currency totals) and states the download link expires in 24 hours. It does not say whether anything is persisted server-side or what happens if the link is missed.

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?

Two sentences, front-loaded with the trigger condition, then the deliverable and its contents. Every clause carries information an agent can act on; nothing is redundant.

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?

Purpose, input expectations, generated artifact contents, and link expiry are all covered, and an output schema exists to explain return values. Nothing an agent needs in order to decide to call this tool is missing.

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 the schema already documents every field, including the invoices/line_items structure. The description only gestures at the data shape ("one row per invoice, one row per line item") without adding format or validation detail beyond the schema; a 3 baseline is appropriate.

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 names a specific verb and artifact ("Builds an .xlsx workbook" with "one row per invoice") and gives a concrete trigger ("when the user wants invoices, bills or receipts put into an Excel spreadsheet"). It never explicitly contrasts itself with siblings such as check_invoices, so sibling differentiation is left implicit.

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?

It gives a clear activation condition tied to user intent and input type (invoices, bills, receipts → spreadsheet), which is enough to route most requests. It offers no when-not guidance or pointer to check_invoices for validation-first workflows.

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