Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

proforma_invoices_cancel

DestructiveIdempotent

Cancel a proforma invoice from any status except converted or cancelled, preserving its historical record instead of deleting it.

Instructions

Cancel a proforma invoice. Can be cancelled from any status except converted or already cancelled. Preserves historical record unlike deletion.

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID of the proforma invoice 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 declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false. The description adds meaningful state-gating rules and the key behavioral distinction that the record is retained rather than deleted.

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?

Three short sentences, front-loaded with the action and followed by the eligibility constraint and the contrast with deletion. 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 four-parameter mutation with full schema coverage, annotations covering safety and idempotency, and no output schema, the description provides the essential behavioral context. It could say more about the resulting status or downstream effects, but nothing critical is missing.

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 baseline is 3. The description adds no details about the uuid, companyId, cancellationNotes, or cancellationReason parameters beyond what the schema already documents.

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 ("Cancel a proforma invoice") and immediately distinguishes the operation from deletion by noting it preserves the historical record. An agent can distinguish this from proforma_invoices_delete without opening the 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?

Explicitly defines when cancellation is allowed (any status except converted or already cancelled) and contrasts it with deletion. It does not route the agent between cancel, reject, or bulk-cancel siblings, but the key precondition and alternative 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