Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Försäljning per artikel

get_sales_by_article
Read-onlyIdempotent

Sales per article: top-selling articles, revenue, contribution margin where a purchase price exists, and stocked articles that have not sold in the period. Use when the person asks which articles sell most, or what in stock is not selling. Example question: "Vilka artiklar säljer mest? Vad har vi i lager som inte sålt på länge?" 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_sales_by_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNofakturor att läsa raderna för (standard 100, högst 300) Number.
topNoantal artiklar i listan, standard 25 Number.
todateNofakturadatum till (standard i dag) Date as YYYY-MM-DD unless the text allows more.
fromdateNofakturadatum från ÅÅÅÅ-MM-DD (standard 90 dagar 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. Changed6 schema fields changed
    • changedInput schema / properties / fromdate / description
      Previous value: -"fakturadatum från ÅÅÅÅ-MM-DD (standard 90 dagar bakåt)"New value: +"fakturadatum från ÅÅÅÅ-MM-DD (standard 90 dagar bakåt) Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / max / description
      Previous value: -"fakturor att läsa raderna för (standard 100, högst 300)"New value: +"fakturor att läsa raderna för (standard 100, högst 300) Number."
    • changedInput schema / properties / max / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / todate / description
      Previous value: -"fakturadatum till (standard i dag)"New value: +"fakturadatum till (standard i dag) Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / top / description
      Previous value: -"antal artiklar i listan, standard 25"New value: +"antal artiklar i listan, standard 25 Number."
    • changedInput schema / properties / top / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
  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 readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds real value beyond that: it discloses conditional behavior ('contribution margin where a purchase price exists') and that results are computed server-side from live data across all pages, which tells the agent about freshness and completeness.

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 resource and its contents, then usage and behavior. Mostly efficient, though the raw API documentation URL and the duplicated Swedish example are marginal additions that don't help tool selection.

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 schema coverage, the description needn't explain return values or parameters. It covers purpose, triggers, data source, and the notable conditional caveat about contribution margin, leaving little an agent would need to guess before calling it.

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 four parameters (max, top, fromdate, todate) are already fully documented in the schema. The description only implies a date-period scope and adds no syntax, default, or interpretation guidance beyond what the schema says, which is the baseline expectation.

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?

Names the specific resource (sales per article) and enumerates the exact contents returned: top-selling articles, revenue, contribution margin, and stocked-but-unsold articles. This is clearly distinguishable from siblings like get_article (single article master data) and get_inventory_value (stock valuation).

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 conditions — 'when the person asks which articles sell most, or what in stock is not selling' — plus a bilingual example question. It lacks any when-not guidance or named alternative for adjacent ranking questions, 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