Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Paidnice.

Get invoice PDF

get_invoice_pdf
Read-onlyIdempotent

Returns the invoice PDF from Xero or QuickBooks Online, the same file the customer portal offers. Over MCP this returns a download link that works for about an hour. Use list_invoices to find the id. Read only.

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": {
      "organisationId": "<organisationId>",
      "id": "<id>"
    },
    "name": "get_invoice_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPaidnice invoice id, from list_invoices. This is not the invoice number
organisationIdYesId of the organisation to act on, from list_organisations

Output Schema

NameRequiredDescriptionDefault
urlYesSigned download URL. Anyone with it can download the file until it expires
filenameYesSuggested name for the downloaded file
expiresAtYesWhen the URL stops working, about an hour after the call

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that over MCP the result is a download link rather than the file itself, and that the link expires in about an hour. That expiry detail is exactly the kind of non-obvious behavior an agent needs, and it does not conflict with the readOnlyHint/destructiveHint=false annotations.

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?

Four short sentences, front-loaded with what is returned and followed by the practical expiry caveat and the prerequisite lookup. No filler or repetition beyond the minor overlap with the id description.

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?

With rich annotations, a full output schema, and 100% parameter coverage, the description supplies the remaining context: source systems, the link-not-file return shape, link lifetime, and how to obtain the id. Nothing needed to call it correctly 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 coverage is 100% and the schema already documents both parameters, including that id comes from list_invoices and is not the invoice number. The description's 'Use list_invoices to find the id' duplicates that schema text without adding format or edge-case detail, so the baseline 3 applies.

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?

States a specific verb and resource ('Returns the invoice PDF') plus the source systems (Xero or QuickBooks Online), which sets it apart from get_invoice, which presumably returns invoice data rather than the file. It falls short of a 5 because it never names the sibling it differs from, leaving the agent to infer that get_invoice is the metadata alternative.

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?

Explicitly tells the agent to use list_invoices to find the id, which is a genuine prerequisite rather than a restatement. It does not say when not to use it (e.g., when only invoice fields are needed, use get_invoice instead), so the routing guidance is clear but incomplete.

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