Skip to main content
Glama

Hämta verifikat

get_voucher
Read-onlyIdempotent

Hämtar ett bokfört verifikat med alla rader och kopplade underlag. Använd när du har verifikatets id; för att hitta verifikat, använd list_vouchers. Returnerar serie, nummer, räkenskapsår, datum, text, källa, rader med konto, belopp i öre (amount_ore, debet positivt och kredit negativt, samt debit_ore och credit_ore), text, transaktionsdatum och momskod, samt underlag med id och filnamn. Läser bara, ändrar inget.

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>",
      "voucher_id": "<voucher_id>"
    },
    "name": "get_voucher"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
voucher_idYesVerifikatets id (heltal), t.ex. 812. Hämta med list_vouchers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / voucher_id / description
      Added value: +"Verifikatets id (heltal), t.ex. 812. Hämta med list_vouchers."
  2. 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."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description's 'Läser bara, ändrar inget' is largely redundant. It does add real value by enumerating what the response contains (serie, nummer, rader, belopp i öre, underlag), which compensates for the missing output schema.

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 and routing before the field enumeration. The long list of returned fields is dense but earns its place given there is no output schema; minor redundancy with the annotations' read-only hint.

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 two-parameter read tool with no output schema, the description covers purpose, routing, and the full shape of the return value, including the sign convention for amounts. An agent has everything needed to call and interpret it.

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 100% and both parameters are fully documented in the schema, including examples and how to obtain them. The description adds no format or syntax detail beyond that, so the baseline 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 ('Hämtar ett bokfört verifikat') plus scope ('med alla rader och kopplade underlag'), and explicitly contrasts with list_vouchers so the agent can distinguish it from the sibling.

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 when-to-use condition ('Använd när du har verifikatets id') and names the alternative for the other case ('för att hitta verifikat, använd list_vouchers'). Nothing is left 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.