Skip to main content
Glama

Queue a Kash sales export

export_sales_async
Read-onlyIdempotent

Queue a CSV export of validated sales for the selected shop. Returns an operation ID for status and file retrieval.

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": {
      "from": "<from>",
      "to": "<to>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "export_sales_async"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesFirst local business date to exclude, YYYY-MM-DD. Maximum range: 366 days.
fromYesFirst local business date to include, YYYY-MM-DD.
cashbox_idNoLimit the export to one Kash cashbox.
idempotencyKeyYesStable key for this submission, such as a UUID. Keep the same key and arguments when retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-redundant behavior: the operation is asynchronous, the output format is CSV, only 'validated' sales are included (an implicit filter), and the immediate return is an operation ID rather than data — none of which appears in the schema or annotations.

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, zero filler, and the action plus scope are front-loaded before the return-value note. Nothing here is repeated boilerplate.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an async tool with no output schema, telling the agent it gets an operation ID is essential and correctly present, and the date-range limits live in the schema. The remaining gap is the lack of an explicit next step (which sibling polls status and which fetches the file) and any note on how long an operation or its file persists.

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% and the date-range, cashbox and idempotencyKey semantics are fully documented there, including the 366-day cap and retry guidance. The description only echoes the shop scoping ('selected shop') and adds no format or constraint detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Queue a CSV export of validated sales' — plus a scope ('for the selected shop'), which separates it from a read-style sibling like sales_summary. It never names a sibling, but the async/queue framing is distinctive enough for an agent to place it.

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 only implied: the async queue-and-poll pattern is suggested by 'Returns an operation ID for status and file retrieval' but the description never says to use get_async_operation / get_async_operation_result next, nor when to prefer this over the synchronous sales_summary. No exclusions or prerequisites (e.g., required permissions) are 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