Skip to main content
Glama

Följ förslag eller egen referens

find_voucher
Read-onlyIdempotent

Slår upp var ett verifikatförslag eller en egen referens (external_ref) befinner sig: pending (väntar på godkännande i Kvickd), booked (bokfört, med verifikatets id, serie och nummer), rejected (avvisat i Kvickd) eller not_found (okänt). Använd för att följa ett förslag från propose_voucher till verifikatet efter att någon godkänt det i Kvickd. Ange external_ref eller draft_id. Läser bara, ändrar inget. Kräver behörigheten view.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint, so 'Läser bara, ändrar inget' is largely redundant, but the description adds a real behavioral fact not in the annotations: the caller needs the 'view' permission. It also documents the status model the tool returns, which matters since there is no 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?

Purpose and the return states are front-loaded, and the workflow, identifier hint, read-only note and permission requirement follow compactly. Only the read-only sentence is wasted given the annotations; everything else earns its place.

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 three-parameter read tool with no output schema, the description covers the important ground: what is looked up, what states come back, the permission needed, and the propose_voucher workflow. The remaining gap is the draft_id vs external_ref selection rule, which both schema and description leave vague.

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 33%: only orgnr is documented (with a pointer to list_companies). The description partially compensates by explaining that external_ref means 'egen referens' and that the caller should supply external_ref or draft_id, implying an either/or choice, but it never states precedence, whether one is required, or how a missing match is distinguished from a bad identifier.

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?

The description uses a specific verb ('Slår upp') plus the resource (verifikatförslag / external_ref) and enumerates the exact outcomes: pending, booked, rejected, not_found, with booked returning the verifikat's id, serie and nummer. An agent can separate this lookup tool from propose_voucher without opening either schema.

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

Usage Guidelines4/5

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

It states the concrete workflow: use it to follow a proposal from propose_voucher to the booked verifikat after someone approved it in Kvickd, and it names which identifier to supply. It does not say when to prefer this over get_voucher or list_voucher_drafts, so an explicit exclusion is missing, but the intended context is unambiguous.

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.