Skip to main content
Glama

Taiwan Receipt Lottery

Check receipt numbers

check_receipts
Read-onlyIdempotent

Checks receipt numbers against the winning numbers and returns the prize, the amount after tax and where the claim window stands. Data comes from CubeLV's Taiwan open data service (https://cubelv.com/en/mcp/taiwan-receipt-lottery/): each call names a method and passes its arguments in args.

Methods:

  • receiptCheck (Check receipts against the Taiwan receipt lottery): Checks up to 100 Taiwan uniform invoice numbers against the receipt lottery. For each number and each draw it returns the prize won (only the highest one counts), the winning number it matched, the prize amount, income tax, stamp tax and net amount in TWD, and the claim period with a claim status computed for today in Taiwan time, plus a summary with the count of winning receipts and the totals. Without a period, every draw whose claim period has not ended is checked (usually two). A number given as its last 3 digits only returns the prize it is sure to win (sixth or additional sixth) and the higher prizes it might win, with needsFullNumber set when the full 8 digits are needed to tell. Args: numbers (required): Comma-separated invoice numbers, up to 100; each is the 8 digits (an optional two-letter prefix such as AB-12345678 is accepted) or just the last 3 digits; period: Check only this draw period, YYYYMM; either month of the two-month period works.

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": {
      "method": "<method>"
    },
    "name": "check_receipts"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoArguments of the method, as listed in the tool description
langNoLanguage for data labels (industries, statement items, categories) and links: en, ja, ko or vi; default en
methodYesMethod from the list in the tool description
offsetNoPosition in the longest list of the response to start from. A response whose list is longer than fits carries page.nextOffset for the next part; default 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world access. Beyond those, the description discloses the external data source (CubeLV Taiwan open data), that only the highest prize counts per number, that claim status is computed for today in Taiwan time, and that needsFullNumber is set when a 3-digit match is ambiguous — substantive behavior not derivable from annotations. It says nothing about failure modes or rate limits, leaving some gaps.

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?

The lead sentence is front-loaded and states purpose plus return shape before any detail. The method block is a very long run-on that enumerates return fields in one breath and repeats the tool name in a parenthetical, costing some readability, but almost every clause adds usable information.

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 tool with no output schema and a nested free-form args object, the description explains return contents (prize, matched number, income and stamp tax, net TWD, claim period/status, summary counts) and partial-match semantics. Pagination is handled by the offset field in the schema. Only error or invalid-input behavior is left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the args object is a free-form container ('as listed in the tool description'), so the description carries real burden and discharges it: numbers is defined as up to 100 comma-separated 8-digit invoices with optional two-letter prefixes or 3-digit fragments, and period as YYYYMM accepting either month of the pair. lang and offset are left to the schema, which documents them adequately.

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 opening sentence names a specific verb and resource ('Checks receipt numbers against the winning numbers') and states what is returned (prize, post-tax amount, claim window). The listed method 'receiptCheck' further scopes it to Taiwan uniform invoice numbers, which implicitly separates it from the sibling get_winning_numbers, whose role is to supply the numbers rather than test them.

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 actionable context: omitting period checks every draw whose claim period has not ended ('usually two'), and supplying a 3-digit fragment yields only the guaranteed and possible higher prizes. It does not explicitly route the agent to get_winning_numbers or state when this tool should not be used, so it stops short of full when/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