Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Underlagskontroll

check_supplier_invoice_attachments
Read-onlyIdempotent

Checks the supplier invoices of a period against their attached files: amount, VAT, due date, OCR number (Swedish payment reference) and bank giro, and which invoices have no attachment. Use when the person asks whether supplier invoices match their documents or whether an attachment is missing. Example question: "Stämmer leverantörsfakturorna i september mot sina underlag? Saknas någon bilaga?" Read-only; computed on the server from live Fortnox data over all pages (Fortnox API, https://api.fortnox.se/apidocs).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_supplier_invoice_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNofakturor att läsa underlaget för i ett anrop (standard 20, högst 40) Number.
borjanNohoppa över så många fakturor — för att fortsätta där förra anropet slutade Number.
to_dateNofakturadatum till (standard: i dag) Date as YYYY-MM-DD unless the text allows more.
from_dateNofakturadatum från, ÅÅÅÅ-MM-DD (standard: 30 dagar bakåt) Date as YYYY-MM-DD unless the text allows more.
leverantorNoleverantörsnummer, för en enda leverantör

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / borjan / description
      Previous value: -"hoppa över så många fakturor — för att fortsätta där förra anropet slutade"New value: +"hoppa över så många fakturor — för att fortsätta där förra anropet slutade Number."
    • changedInput schema / properties / borjan / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / from_date / description
      Previous value: -"fakturadatum från, ÅÅÅÅ-MM-DD (standard: 30 dagar bakåt)"New value: +"fakturadatum från, ÅÅÅÅ-MM-DD (standard: 30 dagar bakåt) Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / max / description
      Previous value: -"fakturor att läsa underlaget för i ett anrop (standard 20, högst 40)"New value: +"fakturor att läsa underlaget för i ett anrop (standard 20, högst 40) Number."
    • changedInput schema / properties / max / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / to_date / description
      Previous value: -"fakturadatum till (standard: i dag)"New value: +"fakturadatum till (standard: i dag) Date as YYYY-MM-DD unless the text allows more."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint false and openWorldHint false, so the safety profile is covered. The description adds genuinely non-obvious behavioral facts: results are computed on the server from live Fortnox data and span all pages, which tells the agent that max/borjan are presentation paging rather than a cap on the data scanned. It does not disclose cost, latency, or rate-limit behavior, so a 4 rather than 5.

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?

The purpose sentence is front-loaded and dense, and the checks it performs are packed into one useful clause. The example question is arguably redundant with the stated use case, and the trailing Fortnox API documentation URL plus the read-only provenance note add length without much decision value. Still efficient overall with no filler sentences.

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?

An output schema exists, so return values need not be explained, and the description covers purpose, trigger, and data provenance for a five-parameter read-only tool. The one open question for an agent is how the date window and paging interplay with 'all pages', which is only partially resolved. That keeps it at 4 rather than fully complete.

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 the schema already documents max, borjan, from_date, to_date and leverantor, including defaults. The description adds only an indirect hint — 'over all pages' — that constrains how paging parameters behave; it never explains the date-range defaults or the leverantor filter itself. Baseline 3 is the correct ceiling given the schema does the heavy lifting.

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

Purpose5/5

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

The description names a concrete verb (checks) plus resource (supplier invoices of a period against attached files) and enumerates the comparison fields — amount, VAT, due date, OCR number, bank giro — plus the missing-attachment case. An agent can tell this is a document-vs-invoice validation tool rather than a generic listing or fetch, and can distinguish it from the sibling find_vouchers_without_attachments because the scope here is a date period with field-level matching.

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 states the trigger conditions explicitly: use when the person asks whether supplier invoices match their documents, or whether an attachment is missing. It even supplies a sample Swedish question that maps directly onto the tool. It does not name any sibling as the alternative or give exclusion conditions (for example, when to prefer find_vouchers_without_attachments or find_duplicate_supplier_invoices), so it stops short of a 5.

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