Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

List cost centres

list_cost_centers
Read-onlyIdempotent

Lists the company's cost centres. Use when the person asks which cost centres exist or needs a cost centre code. summarize.all_pages gives totals over every page. Read-only. Fortnox API GET /3/costcenters (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_cost_centers"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so "Read-only" restates structured data rather than adding to it. The value-add is the API endpoint/documentation link and the note that summarize.all_pages totals across every page, but pagination defaults and record-count limits remain undisclosed.

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?

Four short sentences, front-loaded with purpose then usage, with no filler. The "Read-only" clause is minor redundancy against the annotations, but the rest of the text earns its space.

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?

The tool has an output schema and rich annotations, so the description needn't explain return values or safety. Given eight parameters including a nested summarize object, the description covers purpose, trigger, and the one non-obvious nested flag, with only pagination guidance as a residual gap.

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?

With 63% schema coverage, the schema documents expand, fields, sortby, sortorder, and summarize; the description adds meaning only for summarize.all_pages, clarifying that it produces totals over every page. page, limit, and offset semantics (defaults, max values) are left to the bare types in the schema.

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?

"Lists the company's cost centres" states a specific verb and resource, and the endpoint reference (GET /3/costcenters) confirms the exact scope. No sibling is named as an alternative, but the resource is distinct enough that an agent can identify it 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?

"Use when the person asks which cost centres exist or needs a cost centre code" gives clear trigger conditions tied to user intent. It stops short of naming when not to use this tool or pointing to a related sibling such as get_result_by_cost_center_or_project, so it is strong but not complete.

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