Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Kundtopplista

get_top_customers
Read-onlyIdempotent

Customers ranked by invoiced amount for a period, compared with the same period the year before. Use when the person asks which customers bought the most or how revenue per customer has changed. Example question: "Vilka kunder omsatte mest i år, och hur har det ändrats?" 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_top_customers"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoantal, standard 25 Number.
todateNoÅÅÅÅ-MM-DD, standard i dag Date as YYYY-MM-DD unless the text allows more.
fromdateNoÅÅÅÅ-MM-DD, standard räkenskapsårets start Date as YYYY-MM-DD unless the text allows more.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / fromdate / description
      Previous value: -"ÅÅÅÅ-MM-DD, standard räkenskapsårets start"New value: +"ÅÅÅÅ-MM-DD, standard räkenskapsårets start Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / todate / description
      Previous value: -"ÅÅÅÅ-MM-DD, standard i dag"New value: +"ÅÅÅÅ-MM-DD, standard i dag Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / top / description
      Previous value: -"antal, standard 25"New value: +"antal, standard 25 Number."
    • changedInput schema / properties / top / 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 cover read-only, idempotent, and closed-world behavior, so the bar is lower. The description adds meaningful context beyond them: results are computed server-side from live Fortnox data and aggregated across all pages, which tells the agent the ranking is complete rather than a truncated page.

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?

Front-loaded with the core definition, then the usage trigger, then an example. Three sentences with little waste, though the inline API documentation URL is marginal value for an agent.

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?

For a three-parameter, fully-described, zero-required read tool with an output schema, the description covers purpose, trigger, data freshness, and aggregation completeness. Nothing needed to invoke it correctly 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?

Schema description coverage is 100% and documents top, fromdate, and todate with defaults, so baseline applies. The description only implies a period via 'for a period' and adds no syntax or default details beyond the schema.

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?

States a specific verb and resource: customers ranked by invoiced amount for a period, with a year-over-year comparison. This clearly distinguishes it from list_customers or get_customer, which are per-record lookups rather than rankings.

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?

Gives explicit trigger phrases ('which customers bought the most', 'how revenue per customer has changed') plus a concrete example question. It stops short of naming when not to use it or a specific alternative, but the use case is unambiguous.

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