Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Förfallodagar

list_due_dates
Read-onlyIdempotent

Customer and supplier invoices by due date: what is overdue and what falls due in the coming days, invoice by invoice. Use when the person asks what falls due soon or what has to be paid next week. dagar sets how many days ahead; sida chooses customers, suppliers or both. Example question: "Vad förfaller de närmaste 30 dagarna? Vilka leverantörsfakturor ska betalas nästa vecka?" 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": "list_due_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoÅÅÅÅ-MM-DD att räkna från; standard i dag Date as YYYY-MM-DD unless the text allows more.
partNodel av kundens eller leverantörens namn, för att bara visa den
sidaNo"kund", "leverantor" eller "bada" (standard) One of: kund, leverantor, bada.
dagarNohur många dagar framåt, standard 30, högst 365 Number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / dagar / description
      Previous value: -"hur många dagar framåt, standard 30, högst 365"New value: +"hur många dagar framåt, standard 30, högst 365 Number."
    • changedInput schema / properties / dagar / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / date / description
      Previous value: -"ÅÅÅÅ-MM-DD att räkna från; standard i dag"New value: +"ÅÅÅÅ-MM-DD att räkna från; standard i dag Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / sida / description
      Previous value: -"\"kund\", \"leverantor\" eller \"bada\" (standard)"New value: +"\"kund\", \"leverantor\" eller \"bada\" (standard) One of: kund, leverantor, bada."
  2. Added

TDQS

A4.1/5.0
Behavior4/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 description's 'Read-only' restates rather than adds. It does, however, contribute real context beyond the annotations: results are computed server-side from live Fortnox data and span all pages, telling the agent that pagination is not the caller's concern and data is current.

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 and usage signal are front-loaded, and every sentence contributes something (purpose, trigger, parameter mapping, provenance). It is slightly longer than needed because the Swedish example question and the Swedish parameter names overlap with English phrasings, but nothing is filler.

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 four optional parameters, a full output schema, and rich annotations, the definition supplies what the agent still needs: when to reach for it, what the two key parameters do, and that results are computed live across all pages. Only the date and part parameters' intent is left entirely to the schema, a minor gap for a read-only reporting tool.

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 all four parameters with formats and defaults. The description ties dagar to days-ahead and sida to customers/suppliers/both, reinforcing intent, but says nothing about date (start date) or part (name filter), so it adds only marginal meaning over the schema. Baseline 3 for full schema coverage.

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 states a specific resource and framing: customer and supplier invoices organized by due date, showing both overdue and upcoming items 'invoice by invoice'. That due-date lens clearly separates it from the plain invoice/listing siblings like list_invoices and list_supplier_invoices, and the scope ('both customer and supplier') is stated up front.

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 concrete triggering conditions ('Use when the person asks what falls due soon or what has to be paid next week') plus a natural-language example question covering both the 30-day and next-week cases. There is no explicit when-not or named alternative, 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