Skip to main content
Glama

get_invoice

Read-only

Retrieves a single Fortnox invoice by document number, returning its invoice rows, payment details, and booking state so you can verify totals and accounting status.

Instructions

One invoice with rows, payment and booking state.

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_number": "<document_number>"
    },
    "name": "get_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.3/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 and openness profile is covered. The description adds some return-shape context by naming rows, payment, and booking state, but it does not describe error behavior, missing-record handling, or external-call implications.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely short and front-loaded, but it is an under-specified sentence fragment rather than a complete, efficient definition. Its brevity leaves key retrieval details unstated.

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

Completeness2/5

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

For a single-record retrieval tool with no output schema, the description should clarify the identifier and the returned structure more fully. It gestures at the invoice contents but omits the lookup parameter, error cases, and sufficient detail for confident invocation.

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

Parameters1/5

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

The single required parameter, document_number, has 0% schema description coverage and the description does not mention it at all. There is no guidance on identifier format, source, or constraints, so the description adds no meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies the resource as a single invoice and lists what it contains (rows, payment, booking state), so retrieval is inferable. However, it is a noun phrase without an explicit verb and does not distinguish this from sibling invoice lookups such as get_supplier_invoice or get_invoice_payment_evidence.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus the many sibling invoice tools. The agent must infer its role from the name and the brief content note.

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