Skip to main content
Glama

All AI LLC API: documents and calculators

Expense Report (PDF and Word)

generate_business_expense_report_generator
Read-onlyIdempotent

Build a clean expense report from your receipts: line items by category, mileage at the IRS business rate for the trip date (or your own rate), per diem you enter, advances, and the amount owed to you or back to the company, with flags for missing receipts, possible duplicates and dates outside the period. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/business-expense-report-generator/ . This is an organizer that adds up your entries. It does not decide what is deductible, reimbursable under any plan, or taxable, and it is not an accounting system or a substitute for your employer's expense policy. Rates shown come from the IRS page on the date noted; confirm them before you submit. PAID: 250 credits ($0.25) per successful call from one-time prepaid credits; send Authorization: Bearer <api_key>. Failed or empty calls are free. Keyless callers get 3 free trial calls per day.

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": {
      "fields": "<fields>"
    },
    "name": "generate_business_expense_report_generator"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNoTable rows by table id.
fieldsYesForm fields by id. Leave out what you do not know; the document keeps a blank line for it.
formatNoOutput files. pdf is fillable.both
api_keyNoOptional. Only for clients that cannot send an Authorization header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare read-only, non-destructive, idempotent behavior. The description adds substantial context beyond that: it returns fillable PDF and Word files, uses the same engine as a linked tool, is an organizer not an accounting system, uses IRS rates that must be confirmed, and details paid pricing, auth header requirements, free failed calls, and keyless trial limits.

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 definition is front-loaded with the core purpose and includes useful disclaimers and pricing. It is somewhat long, with multiple sentences on limitations and billing, but those sentences add value for an agent deciding whether and how to call the tool. No major redundancy, though it could be tightened.

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?

Given the nested schema, lack of output schema, and paid nature of the tool, the description covers what an agent needs: what it produces, what it does not do, rate caveats, authentication, cost, and trial limits. Return format is described at a high level (fillable PDF and Word), which is sufficient without an output schema.

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 input schema already documents parameters thoroughly. The description adds high-level meaning—category line items, mileage at IRS rate, per diem entered by user, advances, receipt thresholds, and missing/duplicate flags—but does not introduce syntax or format details beyond the schema. Baseline 3 is appropriate when the schema carries parameter semantics.

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 begins with a specific verb and resource: 'Build a clean expense report from your receipts,' then lists the included components (line items, mileage, per diem, advances, amount owed) and output formats. It does not explicitly name the sibling calculate tool, but the phrase 'This is an organizer that adds up your entries' implicitly distinguishes it from a calculation engine.

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?

The description gives clear usage context: build an expense report from receipts with flags for missing receipts and duplicates. It also provides explicit exclusions—not for determining deductibility, reimbursability, taxability, or replacing employer policy—and advises confirming IRS rates before submission. No alternative sibling tool is named, which keeps it from a 5.

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.