Skip to main content
Glama

Taiwan Payments & E-Invoice (ECPay 綠界 / NewebPay 藍新)

Server Details

Taiwan payments (ECPay 綠界 + NewebPay 藍新) & e-invoices for AI agents. Stateless, never holds funds.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.
Tool DescriptionsA

Average 4.1/5 across 4 of 4 tools scored.

Server CoherenceA
Disambiguation5/5

Each tool has a clearly distinct purpose: creating payment links, voiding invoices, issuing invoices, and querying payment status. No overlap or ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (e.g., create_payment_link, invalid_einvoice), making the naming predictable.

Tool Count5/5

With 4 tools, the server is well-scoped for the payments and e-invoice domain, covering essential operations without unnecessary bloat.

Completeness4/5

The tool set covers core workflows (create payment, issue invoice, void invoice, check status), but lacks payment cancellation or invoice update, which are minor gaps.

Available Tools

4 tools
invalid_einvoiceA
DestructiveIdempotent
Inspect

Void (作廢) a previously issued ECPay e-invoice. Needs the invoice number and its issue date.

ParametersJSON Schema
NameRequiredDescriptionDefault
reasonYesVoid reason (≤20 chars)
invoice_noYesInvoice number returned by issue_einvoice (e.g. AB12345678)
invoice_dateYesInvoice date as returned by issue_einvoice (yyyy-MM-dd)
Behavior3/5

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

Annotations already indicate destructiveHint=true and idempotentHint=true, so the description's 'Void' aligns. The description adds no extra behavioral context beyond that, which is acceptable for a simple operation.

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 concise sentences with no wasted words. Front-loaded with purpose, then input hint.

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?

Adequate for a simple void operation with clear schema and annotations. Lacks mention of expected outcomes (e.g., no return value or error cases) but output schema is absent, so not required. Sibling tools are not directly related.

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 covers all parameters with descriptions (100% coverage). The description mentions the key parameters but omits 'reason' as needed, though schema makes it clear. Baseline 3 is appropriate.

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?

Clearly states the action (void a previously issued ECPay e-invoice), specifies the resource, and the need for invoice number and date. Distinguishes from sibling tools which are for payment links, issuance, and querying.

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?

Explicitly says when to use (to void a previously issued invoice) and what inputs are needed. Does not mention when not to use or alternatives, but context is sufficient given siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

issue_einvoiceAInspect

Issue a Taiwan government e-invoice (電子發票, B2C) via ECPay. Taiwan law requires an invoice for every sale; this tool issues one and (in production) uploads it to the Ministry of Finance. Works instantly in demo mode (ECPay official sandbox). Supports personal invoices (cloud carrier), company invoices with tax ID (統一編號), and donation.

ParametersJSON Schema
NameRequiredDescriptionDefault
itemsYesInvoice line items
tax_idNo8-digit Taiwan company tax ID (統一編號) for a company invoice. Omit for personal invoice.
carrier_numNoMobile barcode carrier (手機條碼載具, format /XXXXXXX). If omitted, ECPay member carrier is used.
sales_amountYesInvoice total in TWD including tax. Must equal the sum of item price×count.
customer_nameNoBuyer name. Required when tax_id is given.
relate_numberNoYour unique reference (≤30 chars). Auto-generated if omitted.
customer_emailNoBuyer email (invoice notification). Required unless customer_phone is given.
customer_phoneNoBuyer mobile number. Required unless customer_email is given.
donation_love_codeNoCharity love code (愛心碼) to donate the invoice. Mutually exclusive with tax_id / carrier.
Behavior4/5

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

Adds beyond annotations: uploads to Ministry of Finance in production, works instantly in demo mode, and supports three invoice types. Annotations already show readOnlyHint=false and destructiveHint=false, consistent with the description.

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?

Three sentences that front-load purpose then add context. Efficient but could be slightly more structured (e.g., separate demo note).

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?

Covers legal context, demo mode, and three use cases. No output schema, so return value explanation omitted but acceptable. With 9 params fully documented, description adds high-level completeness.

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 coverage is 100% with descriptions for each parameter. The general description adds context (e.g., 'cloud carrier') but does not significantly enhance understanding beyond the schema.

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?

Description clearly states the tool issues Taiwan government e-invoices via ECPay, specifying B2C, and lists supported invoice types (personal, company, donation). It distinguishes from siblings by focusing on the invoicing act within the Taiwan legal context.

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?

Implied usage from legal requirement: 'Taiwan law requires an invoice for every sale; this tool issues one.' No explicit when-not-to-use or comparison with siblings like invalid_einvoice or create_payment_link.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

query_payment_statusA
Read-only
Inspect

Check whether a payment (created by create_payment_link) has been paid. Queries the gateway directly — a reliable pull-based alternative to webhooks. Works for ECPay 綠界 and NewebPay 藍新金流.

ParametersJSON Schema
NameRequiredDescriptionDefault
providerNoThe gateway the link was created with. Must match create_payment_link. Defaults to ecpay (or auto-selected from credential headers).
amount_twdNoThe original payment amount in TWD. REQUIRED for NewebPay 藍新 (its query API verifies by amount); ignored by ECPay.
merchant_trade_noYesThe merchant_trade_no returned by create_payment_link
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the description's statement 'Queries the gateway directly' is consistent. It adds value by noting reliability and gateway-specific behavior beyond 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?

The description is concise with three short sentences, front-loaded with the main purpose, and no superfluous information.

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?

The tool lacks an output schema, and the description does not explain what the output (e.g., status text, boolean) looks like. It covers purpose, parameters, and gateways but misses return value details, leaving some gap.

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 coverage is 100%, and the description does not add significant new meaning to parameters beyond the schema descriptions. The baseline of 3 is appropriate.

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 description clearly states the tool checks payment status for a payment created by create_payment_link. It distinguishes itself from sibling tools by specifying it is for payment queries, not invoice or creation operations.

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 indicates when to use this tool as a pull-based alternative to webhooks and specifies supported gateways (ECPay, NewebPay). It does not explicitly mention when not to use, but context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.

Resources