Skip to main content
Glama

Ändra fakturainställningar

update_invoice_settings
DestructiveIdempotent

Ändrar bolagets fakturainställningar, som gäller nya fakturor och utkast: betalningsvillkor (payment_terms_days, 0-120 dagar), dröjsmålsränta (late_interest_percent = egen ränta i procent per år, eller statutory_interest=true för räntelagens nivå, referensräntan plus 8 procentenheter), show_late_interest (false: villkoret om dröjsmålsränta skrivs inte ut på fakturorna; rätten till ränta och påminnelsernas ränta påverkas inte) och påminnelseavgift (reminder_fee_ore, högst 6000 öre, 0 = ingen; får bara tas ut om den avtalats). Bankgiro, kontonummer och andra betalningsuppgifter ändras medvetet inte här utan bara i appen, eftersom bytta bankuppgifter på fakturor är ett vanligt sätt att lura till sig betalningar. Valet om dröjsmålsräntans villkor gäller även befintliga utkast men inte bokförda fakturor; show_late_interest=false i update_customer_invoice döljer det på en enskild faktura. Bekräfta ändringen med användaren först. Svaret har de nya inställningarna. Kräver behörigheten Hantera bolag (manage_companies). Argument: orgnr; minst ett av payment_terms_days, late_interest_percent, statutory_interest, show_late_interest, reminder_fee_ore.

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": {
      "orgnr": "<orgnr>"
    },
    "name": "update_invoice_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
reminder_fee_oreNo
payment_terms_daysNo
show_late_interestNo
statutory_interestNo
late_interest_percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag a destructive, idempotent write, but the description adds substantial context on top: the change affects existing drafts but not booked invoices, show_late_interest=false suppresses only the contract clause and does not remove the legal right to interest or reminder interest, and reminder_fee_ore is capped at 6000 and only allowed if agreed. It even explains the fraud rationale for excluding bank details, which meaningfully changes how cautiously an agent should handle the 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?

Purpose and scope are front-loaded, and virtually every sentence carries new information (ranges, caps, scope, permissions). It is dense with long, clause-heavy sentences built from semicolons, which slightly reduces scannability for an agent parsing it quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter destructive mutation with no output schema, the description covers permissions, confirmation policy, blast radius (drafts affected, booked invoices not), return value ("Svaret har de nya inställningarna"), and the rationale for the deliberately missing fields. Essentially nothing an agent needs in order to call this safely is absent.

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

Parameters5/5

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

Schema description coverage is only 17%, so the description must carry the parameter meaning, and it does: payment_terms_days is 0-120 days, late_interest_percent is a custom annual rate while statutory_interest=true means the reference rate plus 8 percentage points, show_late_interest controls whether the clause is printed, and reminder_fee_ore is capped at 6000 with 0 meaning none. It also states the at-least-one-optional-argument constraint the schema itself does not enforce.

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?

"Ändrar bolagets fakturainställningar" states a specific verb and resource, and immediately scopes it to settings that affect new invoices and drafts. It lists the exact settings covered (payment terms, late interest, show_late_interest, reminder fee), which lets an agent distinguish it from invoice-level siblings like update_customer_invoice 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names an explicit exclusion (bankgiro, account number and other payment details are changed only in the app, not here), gives the required permission (Hantera bolag / manage_companies), and instructs confirmation with the user first. It also draws the boundary against update_customer_invoice, which toggles show_late_interest on a single invoice, so the agent can choose between them.

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.