Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Finns fakturan redan i Fortnox? Leverantörsfakturor per fakt

check_invoices_exist
Read-onlyIdempotent

Checks whether supplier invoices already exist in Fortnox, by invoice number: in the supplier ledger, in the inbox or as an attached file. Use when the person asks whether certain invoices are already registered, for example before uploading or registering them. No match means that nothing was found, which is not proof that the invoice is missing. Example question: "Finns fakturorna 299300 och 295196 redan i Fortnox?" 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_invoices_exist"
  }
}

Input Schema

NameRequiredDescriptionDefault
beloppNovalfritt: fakturornas belopp att betala i kronor, i samma ordning, åtskilda med komma (med semikolon om beloppen har decimalkomma) — hittar en faktura som regis Comma-separated.
fakturanummerNoleverantörens fakturanummer eller OCR, kommaseparerade (högst 25) Comma-separated.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / belopp / description
      Previous value: -"valfritt: fakturornas belopp att betala i kronor, i samma ordning, åtskilda med komma (med semikolon om beloppen har decimalkomma) — hittar en faktura som regis"New value: +"valfritt: fakturornas belopp att betala i kronor, i samma ordning, åtskilda med komma (med semikolon om beloppen har decimalkomma) — hittar en faktura som regis Comma-separated."
    • changedInput schema / properties / fakturanummer / description
      Previous value: -"leverantörens fakturanummer eller OCR, kommaseparerade (högst 25)"New value: +"leverantörens fakturanummer eller OCR, kommaseparerade (högst 25) Comma-separated."
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the read-only/idempotent annotations, the description supplies two genuinely useful behavioral facts: results are computed server-side from live Fortnox data across all pages (so no pagination gap), and a negative result is explicitly not proof of absence. It does not discuss latency, result ordering, or the 25-invoice cap beyond what the schema states.

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?

Purpose is front-loaded, followed by usage, the important negative-result caveat, and a short example; nearly every sentence carries information. It is somewhat dense and could trim the repeated framing around the example question.

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 rich annotations, a 100%-covered schema, and an output schema, the main burden on the description is interpretive guidance, which it delivers via the "no match is not proof" caveat and the live-data/all-pages note. Only minor gaps remain, such as the per-invoice result mapping and input limits, which the schema/output schema largely cover.

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 parameters are already documented, and the description correctly reinforces that matching is by invoice number. However, it says nothing about the optional belopp parameter's role in matching, so it adds only marginal meaning on top of the schema — baseline 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 description gives a specific verb and resource ("Checks whether supplier invoices already exist in Fortnox, by invoice number") and widens the scope precisely to three locations: supplier ledger, inbox, and attached file. That makes it clearly an existence check rather than a listing/search tool, though it never names a sibling such as find_supplier_invoices to make the boundary explicit.

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 whether certain invoices are already registered, for example before uploading or registering them" gives a concrete triggering condition and even a worked example question. It provides no explicit when-not rules or named alternatives, so an agent must infer that actual search/list needs belong elsewhere.

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