Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Resultaträkning

get_profit_and_loss
Read-onlyIdempotent

Resultaträkning: intäkter och kostnader per kontoklass för räkenskapsåret, en månad, ett kvartal eller valfri period — mot samma period året innan. Example question: "Visa resultaträkningen för mars. Hur gick kvartal 3 jämfört med i fjol?" Computed on the server from live Fortnox data (Fortnox API, https://api.fortnox.se/apidocs), over all pages.

Input Schema

NameRequiredDescriptionDefault
dateNoÅÅÅÅ-MM-DD för att välja år Date as YYYY-MM-DD unless the text allows more.
periodNoen månad "2026-03", ett kvartal "2026-Q3" eller ett kalenderår "2026"; utelämnad = hela räkenskapsåret YYYY-MM, YYYY-Qn or YYYY.
todateNoÅÅÅÅ-MM eller ÅÅÅÅ-MM-DD: periodens slut Date as YYYY-MM-DD unless the text allows more.
fromdateNoÅÅÅÅ-MM eller ÅÅÅÅ-MM-DD: periodens början (räknas i hela månader) Date as YYYY-MM-DD unless the text allows more.
financialyearNoräkenskapsårets id; standard det som innehåller i dag Number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"ÅÅÅÅ-MM-DD för att välja år"New value: +"ÅÅÅÅ-MM-DD för att välja år Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / financialyear / description
      Previous value: -"räkenskapsårets id; standard det som innehåller i dag"New value: +"räkenskapsårets id; standard det som innehåller i dag Number."
    • changedInput schema / properties / financialyear / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / fromdate / description
      Previous value: -"ÅÅÅÅ-MM eller ÅÅÅÅ-MM-DD: periodens början (räknas i hela månader)"New value: +"ÅÅÅÅ-MM eller ÅÅÅÅ-MM-DD: periodens början (räknas i hela månader) Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / period / description
      Previous value: -"en månad \"2026-03\", ett kvartal \"2026-Q3\" eller ett kalenderår \"2026\"; utelämnad = hela räkenskapsåret"New value: +"en månad \"2026-03\", ett kvartal \"2026-Q3\" eller ett kalenderår \"2026\"; utelämnad = hela räkenskapsåret YYYY-MM, YYYY-Qn or YYYY."
    • changedInput schema / properties / todate / description
      Previous value: -"ÅÅÅÅ-MM eller ÅÅÅÅ-MM-DD: periodens slut"New value: +"ÅÅÅÅ-MM eller ÅÅÅÅ-MM-DD: periodens slut Date as YYYY-MM-DD unless the text allows more."
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this as a safe, idempotent, non-destructive read, so the bar is lower. The description still adds real value by stating the figures are computed server-side from live Fortnox data and aggregated across all pages, plus that results include a prior-year comparison period.

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 period scope, then a concrete example, then data provenance. Every sentence carries information; the API URL is slightly incidental but small.

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 needn't explain return values, and it covers period scope, comparison basis, and data freshness. Nothing critical for correct invocation is missing, though a hint on choosing between this and adjacent result reports would round it out.

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 date, period, fromdate/todate, and financialyear formats. The description only restates the period options at a high level and adds no syntax or precedence guidance beyond what the schema provides. Baseline 3 applies.

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 opens with a specific verb+resource: an income statement showing revenues and costs per account class. That clearly separates it from report siblings like get_balance_sheet or get_monthly_result, though it never names those alternatives explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through example questions ("show the P&L for March, how did Q3 compare to last year?") and the list of supported periods. There is no explicit statement about when to prefer this over get_monthly_result, get_key_figures, or get_management_report.

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