Skip to main content
Glama

api_request

Send custom Fortnox API requests to endpoints not covered by other tools, with dry-run previews to test calls before changing live data.

Instructions

Any Fortnox API call the other tools don't cover. path starts with /3/ (classic API: bodies wrapped in the resource key, e.g. {"Article": {...}}) or /api/warehouse/ (bare JSON). Non-GET calls change live data, and so do some GETs (e.g. /3/invoices/{n}/email sends the invoice). With dry_run=true nothing is sent, GETs included.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "method": "<method>",
      "path": "<path>"
    },
    "name": "api_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
pathYes
methodYes
paramsNo
dry_runNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well on the safety-critical parts: non-GET mutations, surprising side-effecting GETs like invoice emailing, and the fact that dry_run suppresses everything including GETs. It omits auth/scope requirements, rate limits, and error/response behavior, which keeps it off a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences with zero waste: the routing rule first, then path/body format, then the risk and dry_run semantics. Every clause carries operational 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?

For a generic API passthrough this covers what an agent needs to call it safely: routing, path format, body shape, and mutation risk. Missing pagination/response-shape guidance is a real gap since there is no output schema, but the essentials are present.

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 coverage is 0%, so the description must supply all parameter meaning. It explains path (prefix and body-wrapping conventions) and dry_run (nothing is sent, GETs included) and implies method semantics via "non-GET calls change live data", but body and params are left almost entirely unexplained.

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 action (raw Fortnox API call) plus the exact scope that defines it: anything the other tools don't cover. The path-prefix conventions (/3/ vs /api/warehouse/) further pin down what the tool accepts, so an agent can tell instantly this is the escape hatch rather than a typed resource 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?

Explicit routing rule: use this when the sibling tools don't cover the endpoint, which is a clear when-to-use condition. It lacks the inverse ("prefer the typed tool whenever one exists") and gives no hint on how to discover what is covered, but the core selection guidance is present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.