Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

Download invoice PDF

xero_get_invoice_pdf
Read-only

Retrieve an original Xero invoice PDF as an embedded MCP binary resource for client-side viewing or download; requires MCP blob resource support and no uploads or local paths.

Instructions

Retrieve original Xero invoice PDF as an embedded binary file resource. Requires client support for MCP blob resources; no uploads or local paths.

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": {
      "invoiceId": "<invoiceId>"
    },
    "name": "xero_get_invoice_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, and the description stays consistent with that, adding useful behavior: the result is an embedded blob resource rather than a URL, upload, or local file path. With the safety profile already covered by annotations, the remaining gap is what happens on failure (e.g., client without blob support, missing invoice), which the description does not address.

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?

Two short sentences with no filler, and the core action is front-loaded before the client-support caveat. Minor ambiguity in 'no uploads or local paths' (it reads as clarifying return form rather than a restriction) keeps it from being maximally crisp.

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?

For a one-parameter read tool with no output schema, explaining that the return is a blob resource dependent on client capability is the key missing piece, and it is supplied. The remaining shortfall is minor: no note on how to obtain the invoiceId or on error behavior when blob resources are unsupported.

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 0%, so the description carries the full burden for the single invoiceId parameter, yet it says nothing about it — not where to obtain the ID nor what an invalid UUID does. The name and the schema's uuid format/pattern make the parameter type self-evident, but the description adds no meaning beyond the schema.

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 states a specific verb and resource ('Retrieve original Xero invoice PDF') and specifies the return form ('embedded binary file resource'). It implicitly distinguishes itself from the JSON-returning xero_get_invoice and from xero_get_quote_pdf by naming the invoice PDF and the 'original' artifact, but it never explicitly names a sibling, so differentiation is inferential rather than stated.

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 prerequisite 'Requires client support for MCP blob resources' is genuine when-to-use guidance that an agent can act on. However, there is no explicit exclusion such as 'use xero_get_invoice if you need structured invoice data' and no guidance on what to do if the client lacks blob support, leaving the alternative-selection decision to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.