Skip to main content
Glama

Föreslå verifikat för attest

propose_voucher

Lägger ett verifikatförslag i kön Väntande verifikat, där en människa godkänner eller avvisar det innan något bokförs. Använd när användaren vill granska först eller när konteringen är osäker. För att bokföra direkt, använd book_voucher eller create_voucher; för en justering som hör till en avstämning (bilaga), använd create_proposal. Returnerar draft_id, serie, datum och status pending. Bieffekt: inget bokförs. Förslaget godkänns med approve_voucher_draft, ändras med edit_voucher_draft och avvisas med reject_voucher_draft. Underlag i annan valuta än SEK: gissa aldrig växelkursen. Fråga användaren efter kursen (SEK per 1 enhet) eller SEK-beloppet (t.ex. det som drogs från kontot), räkna raderna i SEK och ange currency, foreign_amount_minor och fx_rate eller total_sek_ore, så dokumenteras kursen på verifikatet. Kräver behörigheten reconcile.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes
noteNo
textYes
linesYes
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
seriesNoA
fx_rateNo
currencyNo
underlag_idsNo
total_sek_oreNo
foreign_amount_minorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / orgnr / description
      Added value: +"Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare it a non-readonly, non-destructive, non-idempotent write. The description adds the crucial non-obvious behavior: it is a queued draft that books nothing ('Bieffekt: inget bokförs'), a human gate sits between proposal and booking, and it requires the 'reconcile' permission. It also documents the return fields (draft_id, serie, datum, status pending), all beyond structured data.

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?

Front-loaded with purpose, then usage, alternatives, return values, side effect, follow-up tools, and finally the FX edge case — a logical progression. It is dense and long, but nearly every sentence carries distinct information; only the FX paragraph could be trimmed slightly.

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 an 11-parameter mutation with no output schema and near-zero schema documentation, the description covers return values, approval workflow, permissions, side effects, and the FX edge case. The remaining gap is the shape of 'lines', which an agent must infer to actually construct a valid proposal.

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

Parameters4/5

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

Schema description coverage is only 9%, so the description must carry parameter meaning, and it does so for the hardest ones: it explains currency, foreign_amount_minor, fx_rate and total_sek_ore and how to derive SEK lines ('räkna raderna i SEK'). It leaves the required lines/text/date and series/note/underlag_ids structure unexplained, so coverage is substantial but incomplete.

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 + resource ('Lägger ett verifikatförslag i kön Väntande verifikat') and pins down the scope: a human approves/rejects before anything is booked. It also names the sibling tools it is not (book_voucher, create_voucher, create_proposal), so an agent can distinguish it without opening any 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 an explicit trigger ('Använd när användaren vill granska först eller när konteringen är osäker') plus conditional alternatives: direct booking goes to book_voucher/create_voucher, and reconciliation adjustments go to create_proposal. It also names the downstream approve/edit/reject tools, leaving nothing to inference.

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