Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Betalningar i en period

list_payments_in_period
Read-onlyIdempotent

Payments in a period: incoming payments from customers and outgoing payments to suppliers, per day and counterparty, with registered but unbooked payments and write-offs marked. Use when the person asks which payments came in or went out in a period, or when a given customer paid. Example question: "Vilka betalningar kom in i oktober? Vad har Nordic betalat, och när?" 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_payments_in_period"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNokundens eller leverantörens nummer, eller del av namnet
sidaNo"kund" (inbetalningar), "leverantor" (utbetalningar) eller "bada" (standard) One of: kund, leverantor, bada.
todateNobetaldatum till ÅÅÅÅ-MM-DD (standard: i dag) Date as YYYY-MM-DD unless the text allows more.
fakturaNofakturanummer — alla betalningar på just den fakturan, oavsett datum
fromdateNobetaldatum från ÅÅÅÅ-MM-DD (standard: månadens första dag) Date as YYYY-MM-DD unless the text allows more.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / fromdate / description
      Previous value: -"betaldatum från ÅÅÅÅ-MM-DD (standard: månadens första dag)"New value: +"betaldatum från ÅÅÅÅ-MM-DD (standard: månadens första dag) Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / sida / description
      Previous value: -"\"kund\" (inbetalningar), \"leverantor\" (utbetalningar) eller \"bada\" (standard)"New value: +"\"kund\" (inbetalningar), \"leverantor\" (utbetalningar) eller \"bada\" (standard) One of: kund, leverantor, bada."
    • changedInput schema / properties / todate / description
      Previous value: -"betaldatum till ÅÅÅÅ-MM-DD (standard: i dag)"New value: +"betaldatum till ÅÅÅÅ-MM-DD (standard: i dag) Date as YYYY-MM-DD unless the text allows more."
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent and non-destructive, so the bar is lower. The description adds genuinely useful context the annotations lack: it is computed server-side from live Fortnox data across all pages (so results are complete and current), and it marks registered-but-unbooked payments and write-offs, which materially affects how results should be read.

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?

It is front-loaded with scope, then usage guidance, then the example, then the data-source note, and every sentence carries information. The Swedish example question adds concrete intent mapping rather than padding, though the whole is slightly longer than strictly necessary.

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 an output schema present and full parameter coverage, the description need not explain return values. It completes the picture with data source, freshness (live, all pages) and edge-case handling (unbooked, write-offs), leaving only sibling differentiation unaddressed.

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?

The schema has 100% description coverage, so the parameters are already fully documented, which sets the baseline at 3. The description's phrase "per day and counterparty" and "when a given customer paid" loosely signals the counterparty and date-range parameters but adds no format or semantics beyond the schema.

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 uses a specific verb and resource (list payments in a period) and explicitly says what the list covers: incoming from customers, outgoing to suppliers, broken down per day and counterparty, with unbooked payments and write-offs flagged. It does not explicitly distinguish itself from the sibling get_payment_list, so it is clear but not fully disambiguated.

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 clear when-to-use guidance: "Use when the person asks which payments came in or went out in a period, or when a given customer paid," reinforced by an example question. It offers no explicit when-not-to-use or named alternatives (e.g. get_payment_list), so it stays a point below the top.

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