myinvois-mcp
v0.1.1Malaysian LHDN e-invoicing (MyInvois) compliance rules: scope, validation, change-diffs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_einvoice_scope
Check whether a Malaysian business is in scope for MyInvois e-invoicing and by when, given its annual turnover (RM). Returns phase, mandatory date, relaxation window, plus asOf/rulesetVersion/source/disclaimer.
| Parameter | Type | Description |
|---|---|---|
turnover * | number | Annual turnover in RM |
date | string | ISO date to evaluate against (defaults to today) |
entity_type | string | Entity type, e.g. sdn_bhd (informational) |
get_einvoice_field_rules
Get the e-invoice field rules that apply to a given scenario (b2b/b2c) and optional transaction amount (RM). Returns required fields, formats, allowed values, plus the standard envelope.
| Parameter | Type | Description |
|---|---|---|
scenario * | string | Transaction scenario |
amount | number | Transaction amount in RM (enables amount-based rules) |
validate_einvoice
Validate an invoice object against the current MyInvois field rules. STATELESS: the invoice is never stored. Returns valid/errors/warnings plus the standard envelope. Highest-frequency tool.
| Parameter | Type | Description |
|---|---|---|
invoice * | object | Invoice as a flat object keyed by field code. Include `scenario` (b2b|b2c) and `amount` (RM) to select applicable rules. |
get_einvoice_changes
Get the feed of MyInvois rule changes effective on or after a given date. Returns change_type, summary, affected entity, and effective date, plus the standard envelope.
| Parameter | Type | Description |
|---|---|---|
since * | string | ISO date; return changes effective on/after this |