Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

List financial years

list_financial_years
Read-onlyIdempotent

Lists the company's financial years with their dates and ids; Date returns the year that covers that date. Use when the person asks which financial years exist, or when a financial year's id is needed. summarize.all_pages gives totals over every page. Read-only. Fortnox API GET /3/financialyears (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_financial_years"
  }
}

Input Schema

NameRequiredDescriptionDefault
DateNodate to filter on, for example 2020-06-30
pageNo
limitNo
expandNoOpen each record (rows)
fieldsNoOnly these columns
offsetNo
sortbyNoOfficial Fortnox list sort field; valid fields are resource-specific.
sortorderNoOne of: ascending, descending
summarizeNoGroup and total on the server

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so "Read-only" merely restates them. The description does add genuinely new behavior: the Fortnox endpoint GET /3/financialyears and the note that summarize.all_pages aggregates over every page rather than just the current one.

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 purpose, then usage triggers, then behavioral caveats, then endpoint provenance — a sensible ordering in a compact block. The trailing API URL is mildly redundant given annotations but cheap and traceable.

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, return values need no explanation, and the description covers the non-obvious filter and aggregation semantics for a 9-parameter, zero-required list tool. Only the paging/limit/offset interactions are unaddressed, a minor gap for a read-only list.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description compensates on the two least obvious parameters: it explains that Date returns the year covering that date (schema only says "date to filter on") and clarifies summarize.all_pages scope. Pagination and sort parameters are left to the schema, which is acceptable but leaves a small gap.

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 ("Lists the company's financial years") plus the returned content (dates and ids), which is unambiguous against the list_* siblings that each target a different resource. An agent can tell exactly what this returns without opening the schema.

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 two explicit trigger conditions: the person asks which financial years exist, or a financial year's id is needed. It adds a useful refinement that the Date filter resolves to the covering year, but names no alternative tool or when-not-to-use condition.

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