Skip to main content
Glama

Lägg till en avstämningsrad

add_bilaga_row

Lägger till en manuell specifikationsrad på en avstämning (bilaga) och behåller befintliga rader. Använd för att lägga till en enstaka post, t.ex. hela slutsaldot så att differensen nollas; för att ersätta eller tömma alla rader på en gång, använd set_bilaga_spec. Returnerar bilagan med alla rader, avstämt belopp och differens. Bieffekt: raden sparas; attesten ändras inte, den görs i appen. Kräver behörigheten reconcile.

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>",
      "bilaga_type": "<bilaga_type>",
      "account": "<account>",
      "year": "<year>",
      "month": "<month>",
      "description": "<description>",
      "amount_ore": "<amount_ore>"
    },
    "name": "add_bilaga_row"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYesKalenderår för avstämningsmånaden, t.ex. 2026.
monthYesAvstämningsmånad 1 till 12, t.ex. 3 för mars.
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
accountYesKontonummer i BAS-kontoplanen, t.ex. 1930.
amount_oreYesBelopp i öre (heltal), t.ex. 1250000 för 12 500 kr. Negativt för kreditsaldo.
bilaga_typeYesAvstämningens typ som den visas i get_open_reconciliations, t.ex. BANK eller GL_ACCOUNT.
descriptionYesRadens text, t.ex. Saldo enligt kontoutdrag 2026-03-31.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / account / description
      Added value: +"Kontonummer i BAS-kontoplanen, t.ex. 1930."
    • addedInput schema / properties / amount_ore / description
      Added value: +"Belopp i öre (heltal), t.ex. 1250000 för 12 500 kr. Negativt för kreditsaldo."
    • addedInput schema / properties / bilaga_type / description
      Added value: +"Avstämningens typ som den visas i get_open_reconciliations, t.ex. BANK eller GL_ACCOUNT."
    • addedInput schema / properties / description / description
      Added value: +"Radens text, t.ex. Saldo enligt kontoutdrag 2026-03-31."
    • addedInput schema / properties / month / description
      Added value: +"Avstämningsmånad 1 till 12, t.ex. 3 för mars."
    • addedInput schema / properties / orgnr / description
      Added value: +"Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies."
    • addedInput schema / properties / year / description
      Added value: +"Kalenderår för avstämningsmånaden, t.ex. 2026."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the return payload (bilaga with all rows, avstämt belopp, differens), the side effect that the row is persisted, the important caveat that the attest is NOT changed here, and the required 'reconcile' permission. For a non-idempotent write tool this is exactly the missing context an agent needs.

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?

Purpose is front-loaded in the first clause, followed by the routing rule, the return shape, the side effect and the permission requirement in that priority order. Every clause carries information; nothing is restated from the schema or annotations.

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?

All 7 required parameters are fully documented in the schema, and although there is no output schema the description spells out the return value and the post-call state (row saved, attest untouched). Nothing needed to invoke this correctly is missing.

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%, with each parameter carrying its own example and format guidance (amount in öre, negative for credit, orgnr format, month 1-12). The description adds no parameter-level detail beyond that, so the baseline of 3 applies.

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 verb and resource ('Lägger till en manuell specifikationsrad på en avstämning') and immediately scopes it as additive ('behåller befintliga rader'), which distinguishes it from the row-replacing sibling. An agent can tell exactly what this does without reading 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?

Gives a positive use case ('lägga till en enstaka post, t.ex. hela slutsaldot så att differensen nollas') and an explicit alternative for the opposite operation ('för att ersätta eller tömma alla rader på en gång, använd set_bilaga_spec'). Both the when and the when-not are named.

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.