Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Betalningsmönster

get_customer_payment_patterns
Read-onlyIdempotent

How late each customer actually pays relative to the due date, and whether that is improving or getting worse. Use when the person asks which customers pay late or whose payment habits are changing. Example question: "Vilka kunder betalar sent? Blir någon sämre på att betala?" 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": "get_customer_payment_patterns"
  }
}

Input Schema

NameRequiredDescriptionDefault
kundNokundnummer, för en enda kund
fromdateNobetalda från och med ÅÅÅÅ-MM-DD, standard ett år bakåt Date as YYYY-MM-DD unless the text allows more.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / fromdate / description
      Previous value: -"betalda från och med ÅÅÅÅ-MM-DD, standard ett år bakåt"New value: +"betalda från och med ÅÅÅÅ-MM-DD, standard ett år bakåt Date as YYYY-MM-DD unless the text allows more."
  2. Added

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: results are computed server-side from live Fortnox data and span all pages, meaning the agent can trust completeness without paginating itself. It does not explain the time window default or what happens when no payments exist, leaving some behavioral gaps.

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 answer definition and the usage trigger are front-loaded, with the example question and caveats following in a logical order. The Fortnox API documentation URL is marginal value for an agent that already has a schema, but the rest of the text earns its place.

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, the description does not need to explain return values, and it correctly focuses on scope, trigger conditions and data freshness. The only meaningful omission for a 2-parameter analytical tool is that it never says what 'late' is measured in or whether the trend comparison is month-over-month or period-over-period.

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 (kund, fromdate) are already documented in the schema, including the one-year default for fromdate. The description adds no parameter-level detail of its own — no note that kund restricts to a single customer in the pattern output, no date format clarification — so 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 description states a specific computed metric — how late each customer pays relative to due date plus the trend direction — which is a concrete, distinguishable purpose. It is clearly different from raw listing tools like get_payment_list or get_customer because it returns an analytical pattern, not transactions or master data.

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 which customers pay late or whose payment habits are changing") and a concrete example question, which is strong selection guidance. It stops short of naming an alternative or an exclusion case (e.g. when a raw payment list is preferable instead).

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