Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Byt arbetsbolag

execute_company_switch
Idempotent

Switches the working company to the one named in an approved switch proposal, using its confirmation_token. Use when the person has agreed to that exact switch. It changes which company this connection writes to, and nothing in Fortnox.

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": {
      "company_key": "<company_key>",
      "confirmation_token": "<confirmation_token>"
    },
    "name": "execute_company_switch"
  }
}

Input Schema

NameRequiredDescriptionDefault
company_keyYes
confirmation_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this as a non-read-only, idempotent, non-destructive local operation, so the bar is lower. The description still adds real context beyond them: it scopes the effect to "which company this connection writes to" and explicitly bounds the blast radius with "nothing in Fortnox", which is exactly the reassurance an agent needs before a state-changing call.

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?

Three short sentences, front-loaded with the action and its precondition, with the scope limitation last. Little waste, though the second sentence partly restates the first's "approved switch proposal" condition.

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 only two parameters, no output schema, and annotations covering the safety profile, the definition covers what an agent needs to decide and call correctly. Minor gaps remain on failure behavior and on whether company_key is validated against the proposal.

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 carries the burden, and it does explain that confirmation_token comes from the approved switch proposal. It does not explain company_key beyond "the one named", leaving unclear whether it must match the proposal's company and what format it takes.

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?

The description gives a specific verb and resource ("Switches the working company") plus a precise precondition ("the one named in an approved switch proposal"). The clause "nothing in Fortnox" cleanly separates it from the Fortnox-write siblings, and "approved" separates it from propose_company_switch without naming it.

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 has agreed to that exact switch" states the triggering condition explicitly and implies the negative case (do not run before a proposal is approved). It stops short of naming the alternative tool to use in that negative case, so an agent must infer propose_company_switch.

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