Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Periodiseringar

check_accruals
Read-onlyIdempotent

Accruals: the accruals planned in Fortnox, whether they are being booked, and large invoices on prepayment accounts that have no accrual. Use when the person asks whether costs and income have been accrued to the right periods. Example question: "Har vi periodiserat det som ska periodiseras? Bokförs periodiseringarna?" 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": "check_accruals"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoen månad (2026-03), ett kvartal (2026-Q3) eller ett år (2026), i stället för fromdate/todate YYYY-MM, YYYY-Qn or YYYY.
todateNoÅÅÅÅ-MM-DD: bara periodiseringar för fakturor med fakturadatum till och med den dagen Date as YYYY-MM-DD unless the text allows more.
fromdateNoÅÅÅÅ-MM-DD: bara periodiseringar för fakturor med fakturadatum från och med den dagen Date as YYYY-MM-DD unless the text allows more.
stort_beloppNoradbelopp i kr (utan moms) som räknas som stort på ett förskottskonto (standard 10000) Number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / fromdate
      Added value: +{
      +  "description": "ÅÅÅÅ-MM-DD: bara periodiseringar för fakturor med fakturadatum från och med den dagen Date as YYYY-MM-DD unless the text allows more.",
      +  "type": [
      +    "string",
      +    "number"
      +  ]
      +}
    • addedInput schema / properties / period
      Added value: +{
      +  "description": "en månad (2026-03), ett kvartal (2026-Q3) eller ett år (2026), i stället för fromdate/todate YYYY-MM, YYYY-Qn or YYYY.",
      +  "type": [
      +    "string",
      +    "number"
      +  ]
      +}
    • addedInput schema / properties / todate
      Added value: +{
      +  "description": "ÅÅÅÅ-MM-DD: bara periodiseringar för fakturor med fakturadatum till och med den dagen Date as YYYY-MM-DD unless the text allows more.",
      +  "type": [
      +    "string",
      +    "number"
      +  ]
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / stort_belopp / description
      Previous value: -"radbelopp i kr (utan moms) som räknas som stort på ett förskottskonto (standard 10000)"New value: +"radbelopp i kr (utan moms) som räknas som stort på ett förskottskonto (standard 10000) Number."
    • changedInput schema / properties / stort_belopp / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
  3. Added

TDQS

A3.6/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 safety is fully covered. The description does add two useful behavioral facts beyond them: computation happens server-side from live Fortnox data and spans all pages, so the agent need not worry about pagination or stale caches. It says nothing about runtime, failure modes, or what a partial-data result looks like, so it is a modest rather than rich addition.

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 opening clause front-loads the resource and its scope, followed by usage guidance and an example, which is the right order for an agent scanning definitions. The API URL citation and the bilingual restatement are slightly redundant but not wasteful. Every sentence contributes information.

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 need not document return values, and with 4 optional, fully described parameters it need not re-document inputs. What remains is well covered: purpose, trigger, read-only nature, and server-side full-page computation. The only gap is that it does not state whether the result is a pass/fail verdict or an itemized finding list, though the output schema likely resolves that.

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%, including the month/quarter/year shorthand for 'period' and the YYYY-MM-DD formats for fromdate/todate, so the schema already carries the parameter burden. The description only obliquely explains the notion behind 'stort_belopp' by referring to 'large invoices on prepayment accounts' without restating the default threshold. Baseline 3 applies when the schema does the heavy lifting.

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 names a concrete resource (accruals planned in Fortnox) and enumerates the three things it surfaces: whether accruals are being booked, planned accruals, and large invoices on prepayment accounts lacking an accrual. That is specific enough to separate it from the other check_* audit siblings by domain. It stops just short of a 5 because it never explicitly contrasts its scope with any sibling tool.

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 states the triggering condition directly: 'Use when the person asks whether costs and income have been accrued to the right periods,' and reinforces it with a concrete example question in Swedish. There is no guidance on when not to use it or which sibling to prefer for adjacent period-allocation questions, so it is clear context without exclusions.

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