MCP server wrapping the ezPay E-Invoice API into 7 AI Agent-callable tools for Taiwan e-invoice operations
Server provides 7 well-structured tools with complete input schemas and descriptions. Tool names follow verb_noun convention (issue_invoice, trigger_invoice, void_invoice, etc.). All parameters have type definitions and descriptions. However, output schemas are not documented, responses are inferred from API behavior rather than explicitly declared. Parameter descriptions are detailed but sometimes verbose (>200 chars), and some lack actionable constraints (e.g., enums for categorical fields like 'status', 'category', 'tax_type'). Error handling is minimal, no recovery guidance or actionable error messages visible in the code. No tool annotations (readOnlyHint, destructiveHint) despite clear risk levels (WRITE, DESTRUCTIVE, READ_ONLY). Missing idempotency guidance for retry-safe operations.
Issue an allowance (credit note / partial refund) against an existing invoice.
Issue an e-invoice through ezPay platform. Supports B2B (business) and B2C (individual) invoices with multiple items, tax types, and carrier options.
Query invoice details by invoice number or merchant order number. Returns invoice status, amounts, items, and other metadata.
Confirm or cancel a pending allowance. Only applies to allowance with status='0' (pending).
Trigger a deferred or scheduled invoice for immediate issuance. Use this after issuing an invoice with status='0' (deferred) or status='3' (scheduled) to actually issue it.
Void an issued allowance. Can only void allowances within the allowed period.
Output schemas not documented. Tool responses are inferred from API behavior; LLMs cannot predict return structure or plan downstream calls. All 7 tools lack explicit response schema documentation.
Categorical parameters lack enum constraints. Fields like 'status' (1|0|3), 'category' (B2B|B2C), 'tax_type' (1|2|3|9), 'carrier_type' (0|1|2) are described as free-form strings. LLMs will hallucinate invalid values.
No tool annotations despite clear risk levels. Tools marked DESTRUCTIVE (void_invoice, void_allowance) and WRITE (issue_invoice, trigger_invoice, issue_allowance, trigger_allowance) lack destructiveHint and readOnlyHint annotations. Agents cannot distinguish safe from risky operations.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | 2026-07-28+ | v2 |
Void an issued invoice. Can only void invoices within the allowed period (before the 14th of the next odd month).
No error handling or recovery guidance in tool definitions. Code shows basic API calls but no documented error cases, retryability, or actionable error messages. Agents cannot self-correct on failures.
Parameter descriptions exceed 200 chars in many cases (e.g., issue_invoice.item_name, issue_invoice.item_price). Verbose descriptions waste tokens and bury key constraints. Descriptions should be 10 - 200 chars with constraints in separate fields.