mst_vn_validate $0.001 per call
Offline structural validator for a Vietnamese Enterprise/Tax Code (Mã số thuế, MST). Strips spaces, checks the 10-digit head-office pattern or the 13-character branch pattern (10 digits + '-' + 3-digit sequence). Uses regex only since the official modulus-11 check-digit weight table is not consistently published.
For AI agents: call mst_vn_validate
POST https://toll402.dev/v1/t/mst_vn_validate
{
"value": "0101243150"
}Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server:
npx -y toll402-mcp · remote https://toll402.dev/mcp.Input schema
{
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "MST string, e.g. '0101243150' or '0101243150-001'"
}
},
"required": [
"value"
],
"additionalProperties": false
}
MCP
{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}