Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Get a customer invoice

get_invoice
Read-onlyIdempotent

Returns one customer invoice by its document number, with rows, amounts, dates and status. Use when the person asks about a specific customer invoice. Read-only. Fortnox API GET /3/invoices/{DocumentNumber} (https://api.fortnox.se/apidocs).

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": {
      "DocumentNumber": "<DocumentNumber>"
    },
    "name": "get_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
DocumentNumberYesidentifies the invoice

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the "Read-only" sentence merely repeats structured data. What it does add beyond the schema is the upstream endpoint (Fortnox GET /3/invoices/{DocumentNumber}) and a hint of the payload shape (rows, amounts, dates, status), but it says nothing about not-found behavior or permissions.

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?

Three short sentences: what it returns first, then the usage trigger, then the safety/endpoint facts. No filler and nothing buried at the end.

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?

With one required parameter, full annotation coverage, and an output schema that already documents return values, the definition covers what an agent needs. It could still note what happens when the document number does not exist, but that is a minor gap for a read-only single-record fetch.

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

Parameters4/5

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

Schema coverage is 100% and the only parameter is already described as "identifies the invoice," so the baseline is 3. The description earns the bump by pinning the identifier type as the invoice's document number, which disambiguates it from an internal ID or row key.

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 one customer invoice") plus the lookup key (document number) and the returned content. The singular-by-document-number framing implicitly separates it from search-style siblings like find_customer_invoices, but no sibling is named explicitly.

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?

"Use when the person asks about a specific customer invoice" gives a clear triggering condition. It stops short of stating when not to use it (e.g. when the user has a list/search need and should call find_customer_invoices instead).

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