Skip to main content
Glama

Create a fiscal sale receipt

checkbox_create_receipt
Destructive

Creates and fiscalizes a sale receipt on the open Checkbox shift (irreversible: a fiscal receipt can only be compensated by a return receipt). Lines come from a store order or are given explicitly; amounts are sent in kopiyky. Returns the fiscal code, total and receipt links.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "payment_type": "<payment_type>"
    },
    "name": "checkbox_create_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoSend the electronic receipt to this email
linesNoReceipt lines when no order is given
footerNoText printed at the bottom
order_refNoOrder reference from list_orders whose lines and total are used
paid_totalNoAmount paid, UAH; less than the lines' sum becomes a discount
allow_repeatNoCreate even if a sale receipt for this order was created here in 30 days
payment_typeYesCASHLESS (card, bank transfer, online payment) or CASH
connection_idNoCheckbox connection id
email_order_customerNoSend the receipt to the email stored in the order

Output Schema

NameRequiredDescriptionDefault
idYes
demoNo
noteNo
typeYes
totalYes
serialNo
statusYes
is_testNo
tax_urlNo
created_atNo
fiscal_codeNo
receipt_urlNo
payment_typesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description goes further by explaining *why*: the operation is irreversible and can only be offset by a return receipt, and it requires an open shift. It also discloses the return payload (fiscal code, total, receipt links), which the annotations alone do not convey.

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 tight clauses ordered purpose → irreversibility → inputs/units → return value, with the destructive nature front-loaded. The final sentence about returned fields is slightly redundant given an output schema exists, but it costs little.

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 9-parameter, destructive write tool with full schema coverage and an output schema, the description covers the critical unknowns: shift prerequisite, irreversibility, line sourcing and unit convention. The only shortfall is the unresolved UAH-vs-kopiyky unit question, which matters for a fiscal document.

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 coverage is 100%, so the schema already documents all nine parameters, making 3 the baseline. The description adds the useful order-vs-explicit-lines distinction, but its claim that 'amounts are sent in kopiyky' sits in tension with the schema's 'Unit price, UAH' and 'Amount paid, UAH' descriptions, which could mislead on units rather than clarify them.

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 gives a specific verb pair and resource ('creates and fiscalizes a sale receipt'), scopes it to the open Checkbox shift, and contrasts it with the compensating operation ('a fiscal receipt can only be compensated by a return receipt'), which implicitly separates it from checkbox_create_return_receipt.

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?

It states a concrete precondition (an open shift must exist) and clarifies the two input routes: 'Lines come from a store order or are given explicitly.' It does not explicitly name the return-receipt tool as the alternative for refunds, so the when-not guidance is inferential rather than stated.

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