Skip to main content
Glama

Read supplier invoices for a job

parse_supplier_invoices

Reads invoice text, a pasted supplier email, or a simple PDF, and collates the lines by job reference into one draft Xero ACCPAY bill per supplier for the month, with one line per job. Flags price changes. Does not call Xero or open a mailbox.

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

Input Schema

NameRequiredDescriptionDefault
monthYes
nonceNo
invoicesYes
signatureNo
signed_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare openWorldHint=false and destructiveHint=false, and the description adds genuine context beyond them: it produces a *draft* bill, groups one line per job, flags price changes, and explicitly does not contact Xero or read a mailbox. What it omits is that readOnlyHint=false despite the 'Reads' framing, and it says nothing about the nonce/signature fields, which hint at a signing/authentication requirement the agent may need to satisfy.

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 tight sentences, front-loaded with the input modes and followed by the concrete output contract and the two boundary constraints. No filler or restatement of the name/title.

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

Completeness3/5

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

For a fairly complex transformation tool with no output schema and zero schema documentation, the description covers the processing model well but leaves the calling contract incomplete: five parameters with only the invoice content and month inferable, and nothing on the signature/nonce fields or on what the returned draft looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and largely fails it. It maps loosely to the invoice item fields (text, supplier email, PDF) and implies 'month', but nonce, signature, and signed_at are entirely unexplained, as is the required structure of each invoice object.

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 specific verbs and resources: it reads invoice text, pasted supplier emails, or PDFs and collates lines by job reference into one draft Xero ACCPAY bill per supplier per month. The output shape (one line per job, price-change flags) is explicit, so an agent knows exactly what it produces and can tell it apart from the job/offer/quote siblings.

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?

The description implies the input situation (you have pasted invoice text, an email, or a simple PDF for a given month) but never states when to prefer this over manual entry or another tool, nor any prerequisite such as having a supplier and job reference already registered. The negative scoping ('Does not call Xero or open a mailbox') constrains behavior rather than routing the agent among alternatives.

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.