Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

receipts_refund

Issue full or partial refund counter-receipts that mirror an issued receipt with negative quantities and inverted payments, linked to the parent for traceable refunds.

Instructions

Issue a refund (counter-)receipt that mirrors the parent receipt with negative quantities and inverted payment amounts. The refund is auto-issued, linked back via refundOf, and inherits the parent receipt series. Parent must be issued and not itself a refund. Omit lineSelections for a full refund of the whole receipt; pass it to refund only specific lines (with possibly partial quantities). Multiple partial refunds against the same parent are allowed until the original quantities are exhausted.

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID of the parent issued receipt to refund
companyIdNoCompany UUID (overrides configured default)
lineSelectionsNoWhen provided, only the listed lines are refunded with the given (partial) quantities. When omitted, the entire receipt is refunded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4.3/5.0
Behavior4/5

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

Beyond annotations (destructiveHint=false, idempotentHint=false), the description discloses auto-issuance, refundOf linkage, inherited series, and the accumulating multiple-partial-refund behavior until quantities are exhausted. It omits permission/auth requirements, but adds substantial behavioral context.

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 the core behavior, then constraints. Dense but every sentence (linkage, series inheritance, preconditions, lineSelections branching) carries information; no filler.

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 3-param mutation tool with no output schema and reasonable annotations, the description covers mechanics, preconditions, and partial-refund semantics. Return shape is left implicit, which is the only notable gap.

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

Parameters4/5

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

Schema coverage is 100% so the baseline is 3, but the description adds real meaning: it clarifies that lineSelections with partial quantities is allowed and that repeated partials can be issued against the same parent until exhausted. This goes beyond the schema's per-line note.

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 ('Issue a refund (counter-)receipt') and immediately explains the mechanism: mirrors parent with negative quantities and inverted amounts. This clearly separates it from receipts_issue and receipts_cancel.

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?

Gives concrete preconditions (parent must be issued and not itself a refund) and explicit branching on lineSelections (omit for full refund, pass for partial). It does not route to an explicit alternative sibling, but the usage conditions are clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools