Skip to main content
Glama

Faktura-PDF

generate_supplier_invoice_pdf
DestructiveIdempotent

Generera Kvickds sammanställning av en registrerad leverantörsfaktura som PDF och spara den i dokumentarkivet (kategori Leverantörsfaktura, syns sedan via list_documents/list_policies och kan läsas/laddas ner). PDF:en heter "Registrerad leverantörsfaktura ... (sammanställning från Kvickd)" och är inte leverantörens original, som ska sparas separat. Skapar ett dokument, så scope upload (inte view). Argument: orgnr, invoice_id.

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>",
      "invoice_id": "<invoice_id>"
    },
    "name": "generate_supplier_invoice_pdf"
  }
}

Input Schema

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

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.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=true, and the description usefully adds the concrete side effect: a document is created in category Leverantörsfaktura and becomes visible through list_documents/list_policies, with a fixed naming convention. However it never addresses why destructiveHint=true (does it replace an existing PDF?) nor whether repeated calls create duplicates or overwrite, which is the main behavioral gap for this tool. Since annotations carry the safety profile, a 3 is appropriate.

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?

The key facts – what gets created, where it lands, how to find it, and that it is not the original – are front-loaded in a single paragraph. The trailing 'Argument: orgnr, invoice_id' duplicates the schema and is the only wasted clause.

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?

With no output schema, the description correctly explains the return side qualitatively (the PDF is stored in the document archive and retrievable via list_documents/list_policies). A mutation tool with annotations plus a clear destination for its artifact is adequately covered; only the overwrite/duplicate behavior around destructiveHint/idempotentHint is left unexplained.

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

Parameters2/5

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

Schema coverage is only 50%: orgnr is well documented in the schema (format plus a pointer to list_companies), but invoice_id has no description at all. The description only restates 'Argument: orgnr, invoice_id' without adding format, source (e.g. get_supplier_invoice/list_supplier_invoices) or meaning, so it fails to compensate for the coverage gap.

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: generates a Kvickd compilation PDF of a registered supplier invoice and stores it in the document archive. It clearly distinguishes the artifact from the supplier's original, separating it from create_supplier_invoice, get_supplier_invoice and upload_underlag 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 Guidelines4/5

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

Goes beyond context by adding an exclusion: this is not the supplier's original, which must be stored separately ('som ska sparas separat'), and it notes 'scope upload (inte view)' for permissioning. There is still no explicit statement of when an agent should call this versus create_supplier_invoice or get_supplier_invoice, so not a full 5.

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.