Skip to main content
Glama

幫使用者對統一發票

life__check_invoice
Read-onlyIdempotent

[台彩 發票 油價對獎]幫使用者對統一發票:輸入 8 碼發票號碼,回傳是否中獎、獎別、獎金與領獎期間。

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": {
      "number": "<number>"
    },
    "name": "life__check_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYes8 碼發票號碼
periodNo期別,不填為最新一期

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds value beyond them by enumerating the result payload (win/lose, prize tier, prize amount, claim period), which matters because there is no output schema. It does not discuss that results depend on an externally published winning-number table or how often the latest period changes.

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?

A single front-loaded sentence that states input and output with no filler. The bracketed keyword block [台彩 發票 油價對獎] adds some noise — 油價 (fuel prices) is unrelated to invoice checking and could momentarily mislead an agent.

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 two-parameter read-only lookup with no output schema, the description covers both the input contract and the shape of the return value, which is what an agent needs to call it and interpret results. Only minor gaps remain, such as what happens with an invalid or unknown invoice number.

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%, with both number (8 碼發票號碼) and period (期別,不填為最新一期) documented in the schema. The description only repeats the 8-digit input requirement and adds no format, validation, or period syntax details beyond that. Baseline 3 applies since the schema already carries the parameter semantics.

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?

The description states a specific verb and resource — checking a uniform invoice number (統一發票對獎) — and goes further by naming the required input (8 碼發票號碼) and the returned fields (是否中獎、獎別、獎金、領獎期間). It is clearly distinguishable from siblings like get_lottery_results, though it never names an alternative to differentiate against.

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 rather than stated: the agent can infer the tool is for checking whether a specific 8-digit invoice wins a prize, and the schema notes that omitting period means the latest period. There is no explicit when-to-use/when-not guidance and no pointer to the closely related life__get_invoice_numbers, so routing is left to inference.

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