Skip to main content
Glama

Get an invoice PDF

get_invoice_pdf
Read-only

An invoice's PDF: a download link valid for 15 minutes and, with includeContent, the PDF itself. For a draft it is a preview (not stored, no link) — show it to the user before issuing. Requires the invoicing feature.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe invoice ID
includeContentNoAlso return the PDF (up to 5 MB)

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?

Beyond the readOnlyHint/openWorldHint annotations, the description discloses the link's 15-minute expiry, that includeContent returns the PDF itself, and that a draft yields a preview that is neither stored nor linkable. Those are exactly the behavioral facts an agent could not infer from structured fields.

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?

Three short clauses, front-loaded with what the tool returns, then the draft caveat, then the prerequisite. Every sentence carries information, though the em-dash preamble is slightly compressed and reads more like notes than prose.

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 no output schema, the description still explains the return shape (link, optional PDF content) and the important draft edge case. For a two-parameter read tool under annotations that already cover safety, nothing material 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 both id and includeContent are already documented, including the 5 MB cap. The description restates the effect of includeContent ('the PDF itself') without adding format, size, or failure semantics beyond the schema, so the baseline of 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?

The opening clause names the specific resource ('An invoice's PDF') and what the caller receives (a download link plus, optionally, the PDF). It is clearly distinguishable from the sibling get_invoice because it deals with the file artifact rather than invoice metadata. It stops short of an explicit verb or a named alternative, so it is clear but not maximally differentiated.

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 real usage context: a prerequisite ('Requires the invoicing feature') and a workflow instruction for drafts ('show it to the user before issuing'). What is missing is explicit routing advice, e.g. when to call this versus get_invoice, so it is strong context without exclusions.

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.