Skip to main content
Glama

Close the Checkbox shift (Z-report)

checkbox_close_shift
Destructive

Closes the open Checkbox shift, which creates the fiscal Z-report (irreversible). Returns the closed shift with the Z-report fiscal code, receipt counts, and sales and returns totals.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "checkbox_close_shift"
  }
}

Input Schema

NameRequiredDescriptionDefault
connection_idNoCheckbox connection id

Output Schema

NameRequiredDescriptionDefault
demoNo
noteNo
serialNo
statusYesCREATED | OPENING | OPENED | CLOSING | CLOSED
cashierNo
receiptsNo
shift_idNo
closed_atNo
opened_atNo
connectionYes
hours_openNo
sales_totalNo
cash_registerNo
returns_totalNo
z_report_fiscal_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds genuinely new context: the operation is irreversible and it produces the fiscal Z-report. It also names what comes back (Z-report fiscal code, receipt counts, sales/returns totals). It stops short of stating permission or failure preconditions.

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?

Two sentences with zero waste; the destructive/irreversible warning is front-loaded in the first sentence alongside the action, and the return summary follows.

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?

An output schema exists, so the description's brief return summary is a bonus rather than a necessity. The irreversible nature is disclosed. What remains unstated is the precondition that an open shift must exist and what happens if none does.

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?

There is a single optional connection_id parameter whose schema description covers it at 100% coverage, so the schema does the work. The description adds nothing about parameter behavior, which is acceptable at this baseline but not above it.

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 ("closes the open Checkbox shift") plus the business consequence (creates the fiscal Z-report). This is enough to distinguish it from checkbox_get_shift and checkbox_open_shift without opening any schema.

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

Usage Guidelines3/5

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

Usage is implied by "the open Checkbox shift" — the tool applies only when a shift is open — but the description never states prerequisites or when to prefer it over siblings such as checkbox_get_shift. No explicit when-not guidance.

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