Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

receipts_cancel

DestructiveIdempotent

Cancel a receipt from draft or issued status and preserve its historical record instead of deleting it; optionally include a cancellation reason and internal notes.

Instructions

Cancel a receipt. Can be cancelled from draft or issued status. Preserves the historical record unlike deletion. Optionally provide a cancellation reason.

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID of the receipt to cancel
companyIdNoCompany UUID (overrides configured default)
cancellationNotesNoInternal notes about the cancellation
cancellationReasonNoReason for cancellation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already mark this as destructive, idempotent, and non-read-only, so the safety profile is covered. The description adds meaningful behavior beyond annotations: only draft or issued receipts can be cancelled, cancellation preserves the historical record unlike deletion, and a reason may be supplied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three tight sentences with no wasted language. It front-loads the action, then gives eligibility, behavioral distinction, and the optional parameter detail.

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 destructive receipt mutation with rich annotations and full schema coverage, the description supplies the key missing behavioral context: eligible statuses, record preservation, and optional reason. It does not discuss reversibility or mention receipts_restore, but the structured fields cover the rest.

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 description coverage is 100%, so the input schema already documents uuid, companyId, cancellationNotes, and cancellationReason. The description only calls out the optional cancellation reason, so it adds little beyond the schema and fits the baseline of 3 when schema coverage is high.

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 states a specific verb and resource: 'Cancel a receipt.' It also scopes the operation to draft or issued receipts and distinguishes it from deletion by noting that the historical record is preserved, so an agent can differentiate it from receipts_delete.

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?

The description gives a clear eligibility condition: cancellation is possible from draft or issued status. It also contrasts cancellation with deletion, which is a useful alternative-selection cue, though it does not explicitly mention sibling operations such as receipts_refund or receipts_restore.

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