amego MCP by usefulapi
v1.6.1Look up invoices, allowances and number ranges, and check government upload status in amego.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
amego_query_invoice Query invoice
Look up one invoice by its invoice number, or by the order number it was issued for. Finds invoices dated within the last 180 days. amego: POST /json/invoice_query.
| Parameter | Type | Description |
|---|---|---|
by * | string | invoice = look up by invoice number; order = look up by order number. |
value * | string | The invoice number (at most 10 characters) or the order number (at most 40 characters). |
amego_list_invoices List invoices
List the invoices of the company in a date range, one page at a time (headers only: number, dates, buyer, amounts, status). amego: POST /json/invoice_list.
| Parameter | Type | Description |
|---|---|---|
date_end * | string | Date as YYYYMMDD, for example 20241031. |
date_select * | Which date to filter on: 1 = invoice date, 2 = creation date. | |
date_start * | string | Date as YYYYMMDD, for example 20241031. |
limit | integer | Rows per page, 20 to 500 (default 20). |
page | integer | Page number (default 1). |
amego_get_invoice_upload_status Get invoice upload status
Check whether the government has accepted each invoice number: the upload status, invoice type, status and total amount. Up to 50 numbers per call. amego: POST /json/invoice_status.
| Parameter | Type | Description |
|---|---|---|
invoice_numbers * | array | Invoice numbers to check, up to 50. |
amego_get_invoice_file Get invoice PDF link
Get a link to the PDF of one invoice (valid for 10 minutes). A carrier invoice can be downloaded only after it wins a prize. amego: POST /json/invoice_file.
| Parameter | Type | Description |
|---|---|---|
by * | string | invoice = look up by invoice number; order = look up by order number. |
value * | string | The invoice number (at most 10 characters) or the order number (at most 40 characters). |
download_style | PDF layout. 0 = A4 full page (default for invoices with a buyer tax ID), 1 = A4 with address and A5, 2 = A4 with two A5, 3 = A5, 5 = QR code A4. |
amego_check_lottery_invoices Check lottery invoices
List the company's invoices that won a prize in one two-month period. amego advises asking on the 1st day of an even month, after the draw. amego: POST /json/lottery_status.
| Parameter | Type | Description |
|---|---|---|
period * | integer | Two-month period: 0 = Jan-Feb, 1 = Mar-Apr, 2 = May-Jun, 3 = Jul-Aug, 4 = Sep-Oct, 5 = Nov-Dec. |
year * | integer | Western calendar year, for example 2026. |
amego_get_track_status Get number range status
Show the status of the invoice number ranges (字軌) that use API number assignment, for one period. Optionally one range by its API code. amego: POST /json/track_status.
| Parameter | Type | Description |
|---|---|---|
period * | integer | Two-month period: 0 = Jan-Feb, 1 = Mar-Apr, 2 = May-Jun, 3 = Jul-Aug, 4 = Sep-Oct, 5 = Nov-Dec. |
year * | integer | Western calendar year, for example 2026. |
track_api_code | string | API code of one number range, set in the amego back office. Omit for all ranges. |
amego_list_track_ranges List number ranges
List every invoice number range (字軌) the company holds at amego for one period: the layer, the category, the start and end numbers, and how many remain. amego: POST /json/track_all.
| Parameter | Type | Description |
|---|---|---|
period * | integer | Two-month period: 0 = Jan-Feb, 1 = Mar-Apr, 2 = May-Jun, 3 = Jul-Aug, 4 = Sep-Oct, 5 = Nov-Dec. |
year * | integer | Western calendar year, for example 2026. |
amego_query_allowance Query allowance
Look up one allowance (折讓單) by its allowance number. amego: POST /json/allowance_query.
| Parameter | Type | Description |
|---|---|---|
allowance_number * | string | Allowance number (折讓單編號), at most 16 characters. |
amego_list_allowances List allowances
List the allowances (折讓單) of the company in a date range, one page at a time. amego: POST /json/allowance_list.
| Parameter | Type | Description |
|---|---|---|
date_end * | string | Date as YYYYMMDD, for example 20241031. |
date_select * | Which date to filter on: 1 = allowance date, 2 = creation date. | |
date_start * | string | Date as YYYYMMDD, for example 20241031. |
limit | integer | Rows per page, 20 to 500 (default 20). |
page | integer | Page number (default 1). |
amego_get_allowance_upload_status Get allowance upload status
Check whether the government has accepted each allowance number: the upload status and the total amount. Up to 50 numbers per call. amego: POST /json/allowance_status.
| Parameter | Type | Description |
|---|---|---|
allowance_numbers * | array | Allowance numbers to check, up to 50. |
amego_get_allowance_file Get allowance PDF link
Get a link to the PDF of one allowance (折讓單). amego: POST /json/allowance_file.
| Parameter | Type | Description |
|---|---|---|
allowance_number * | string | Allowance number (折讓單編號), at most 16 characters. |
amego_lookup_company_name Look up company name
Look up the registered company name for up to 20 tax IDs (統一編號), from the Ministry of Finance data. amego: POST /json/ban_query.
| Parameter | Type | Description |
|---|---|---|
tax_ids * | array | 8-digit tax IDs to look up, up to 20. |
amego_check_mobile_barcode Check mobile barcode
Check whether a mobile carrier barcode (手機條碼) is valid. amego: POST /json/barcode.
| Parameter | Type | Description |
|---|---|---|
barcode * | string | The mobile barcode, 8 characters starting with /, for example /ABC+1+2. |