Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Konteringsavvikelser

find_coding_deviations
Read-onlyIdempotent

New supplier invoices booked to a different account, or with a different VAT rate, than that supplier's usual. Use when the person asks whether any supplier invoice has been booked differently than usual. Example question: "Har någon leverantörsfaktura konterats annorlunda än vanligt?" 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": "find_coding_deviations"
  }
}

Input Schema

NameRequiredDescriptionDefault
dagarNofakturor bokförda de senaste så många dagarna granskas (standard 60, högst 365) Number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / dagar / description
      Previous value: -"fakturor bokförda de senaste så många dagarna granskas (standard 60, högst 365)"New value: +"fakturor bokförda de senaste så många dagarna granskas (standard 60, högst 365) Number."
    • changedInput schema / properties / dagar / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still earns credit by adding that the result is computed server-side from live Fortnox data and spans all pages, which tells the agent pagination is handled internally and the data is not cached.

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 core definition is front-loaded in the opening sentence, followed by the usage trigger and an example. The trailing API documentation URL is mild noise but defensible as provenance; nothing else is padded.

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

Completeness5/5

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

An output schema exists, annotations cover the safety and world assumptions, and the single parameter is fully documented. The description supplies the remaining context an agent needs (live data, all pages aggregated), so nothing material is missing.

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?

There is one optional parameter ('dagar') and the schema description coverage is 100%, including the default of 60 and the 365-day cap. The description adds no further meaning about the lookback window, so the schema does all the work and the baseline of 3 applies.

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 first sentence names the exact anomaly type: new supplier invoices booked to a different account or VAT rate than that supplier's usual. That is a specific resource plus a specific condition, and it separates this tool from neighbors such as find_duplicate_supplier_invoices and find_supplier_invoices.

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 gives an explicit trigger ('Use when the person asks whether any supplier invoice has been booked differently than usual') and reinforces it with a concrete example question. It stops short of naming when-not-to-use conditions or pointing to the sibling deviation tools (vs_last_month / vs_last_year), so it is strong but not exhaustive.

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