Skip to main content
Glama

Makulera leverantörsfaktura

cancel_supplier_invoice
DestructiveIdempotent

Makulera en leverantörsfaktura (återför bokföringen om den redan bokförts). KODEN postar återföringen. Kräver scope book. Argument: orgnr, invoice_id.

Input Schema

TableJSON 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.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds value the annotations cannot: that the reversal posting is performed by the code itself when the invoice was already booked, plus the required auth scope (book). That is meaningful side-effect and permission disclosure.

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 short, front-loaded clauses; the core action leads and the prerequisite trails. The 'KODEN postar återföringen' emphasis is a little cryptic in phrasing but carries real information, so there is little waste.

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 2-parameter mutation tool with no output schema and full annotation coverage, the description supplies the pieces an agent still needs: the reversal semantics, the auth scope, and the argument set. Return values need not be described. Minor gap: it does not clarify preconditions such as payment status.

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 description coverage is 50% – orgnr is well documented in the schema, but invoice_id has no description anywhere. The description merely restates the argument names ('Argument: orgnr, invoice_id') and adds no format, range, or lookup guidance, so it fails to compensate for the undocumented invoice_id.

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 ('Makulera en leverantörsfaktura') and immediately scopes the behavior to reversing an existing booking, which cleanly separates it from sibling cancel_customer_invoice and the various reverse_* tools. It does not name a sibling explicitly, so it stops short of a 5.

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?

Gives a conditional trigger ('återför bokföringen om den redan bokförts') and a hard prerequisite ('Kräver scope book'), which is real usage context. However, it never says when to prefer this over alternatives such as reverse_supplier_payment or reverse_voucher, so the routing guidance is only implied.

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