Skip to main content
Glama

Lista verifikatförslag

list_voucher_drafts
Read-onlyIdempotent

Lista väntande verifikatförslag (drafts) som ännu inte godkänts eller avvisats. Varje rad har account, amount_ore (debet positivt, kredit negativt), debit_ore, credit_ore och text, så raderna kan läsas i samma format som de skickades in. Kräver behörigheten 'view'. Argument: orgnr.

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": "list_voucher_drafts"
  }
}

Input Schema

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

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

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, but the description adds material context: a required 'view' permission, and the per-row shape including the sign convention (amount_ore debit positive, credit negative). Since there is no output schema, disclosing the row structure is genuinely valuable.

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 sentences, front-loaded with the purpose, then return format, then permission and argument. No filler; the only mild inefficiency is that the trailing 'Argument: orgnr' duplicates the schema.

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 a one-parameter read tool with annotations but no output schema, the definition covers purpose, permission prerequisite, and return row fields, which is close to everything needed to call and interpret it. Only the absence of explicit routing guidance to sibling list tools keeps it short of full completeness.

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 the single 'orgnr' parameter is fully documented in the schema, including format and how to obtain it via list_companies. The description only restates 'Argument: orgnr', adding no meaning beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Lista väntande verifikatförslag') plus a clear scope qualifier: drafts that have not yet been approved or rejected. That scope distinguishes it from booked-voucher tools and from the approve/reject siblings, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by 'väntande ... som ännu inte godkänts eller avvisats', so an agent can infer this is the read step before approve_voucher_draft or edit_voucher_draft. However, there is no explicit when-to-use/when-not statement and no named alternative (e.g. list_vouchers for booked entries).

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.