Skip to main content
Glama
stornoro

Storno CLI

by stornoro

receipts_refund

Issue a refund receipt for a previously issued receipt, automatically mirroring the original with negative quantities and inverted payments. Supports full or partial line 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

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

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It discloses key behaviors: the refund is auto-issued, linked back via refundOf, and inherits parent receipt series. It also states constraints (parent must be issued and not itself a refund). It doesn't explicitly mention side-effects like whether the parent's status changes or if payments get altered, but given the auto-issued/linked/inherits detail, it covers the most material behavioral aspects reasonably well.

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 description is a single dense paragraph that packs substantial information without waste. It front-loads the core action ('Issue a refund counter-receipt') then layers constraints and usage modes. Every sentence earns its place. It's slightly long and could arguably be broken into shorter sentences, but nothing is redundant or 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-parameter tool with 100% schema coverage and no output schema, the description is complete. It explains the refund semantics (negative quantities, inverted payments), the linkage (refundOf), series inheritance, full vs partial refund modes, and quantity-exhaustion limits. Nothing critical appears missing for an agent to select and invoke this tool correctly. It doesn't explain return values, but no output schema exists so this is a minor gap at most.

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%, and the schema already documents all 3 parameters well (uuid as parent receipt, companyId override, lineSelections with quantities). The description adds value beyond the schema by explaining the semantic difference between passing lineSelections (partial/lines-specific refund) versus omitting it (full refund of whole receipt), and notes that partial quantities are supported. This supplements the schema's mechanical descriptions with business semantics.

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 clearly states what the tool does: 'Issue a refund (counter-)receipt' that mirrors the parent receipt with negative quantities and inverted payment amounts. It specifies the resource (receipt), the action (refund), and the mechanism (counter-receipt with negative quantities). It distinguishes itself from sibling receipt tools like receipts_create, receipts_issue, receipts_cancel by describing the specific refund behavior.

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

Usage Guidelines5/5

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

The description provides explicit when-to-use context: 'Parent must be issued and not itself a refund.' It also explains the two usage modes clearly: omit lineSelections for full receipt refund, or pass it to refund only specific lines. It even discloses constraints like 'Multiple partial refunds against the same parent are allowed until the original quantities are exhausted,' which is strong usage guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stornoro/storno-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server