Skip to main content
Glama

get_document_pdf

Read-only

Retrieve the Fortnox-printed PDF for a specified offer, order, or invoice by providing its document type and number.

Instructions

The PDF of an offer, order or invoice (as Fortnox prints it).

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": {
      "document_type": "<document_type>",
      "document_number": "<document_number>"
    },
    "name": "get_document_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_typeYes
document_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuine context by saying the result is the Fortnox-rendered PDF, but it omits operational details that matter for a file fetch: encoding (base64/binary), size, and whether the source document must exist in a particular state.

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?

A single short sentence with the resource front-loaded and no filler; nothing is redundant. It is on the edge of under-specification rather than over-length, so it loses a point only because brevity was achieved by dropping useful detail.

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 two-parameter retrieval tool with no output schema, the definition covers scope and safety but not the shape of the return value (PDF bytes vs. a link), which is the one thing an agent cannot learn elsewhere. Complexity is low, so the remaining gap is modest rather than disqualifying.

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 must carry parameter meaning, and it largely does not. It echoes the three document_type values already constrained by the enum and says nothing about document_number — no format, example, or whether it refers to a Fortnox document number versus an external reference.

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 names the concrete resource (the PDF of an offer, order, or invoice) and the qualifier 'as Fortnox prints it' distinguishes the rendered document from the underlying data records. It is a slightly elliptical verb (noun phrase), but an agent can tell this returns a document file rather than a JSON record.

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?

There is no explicit when-to-use/when-not statement and no named alternative, so the agent must infer that this tool is for fetching the printed document while get_offer/get_order/get_invoice return structured data. The 'as Fortnox prints it' phrase supports that inference but does not state it.

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