{"name":"thai-agent-api","description":"Thai utility tools for AI agents. REST under /v1/*, MCP at /mcp.","mcp":"/mcp","tools":[{"name":"baht_text","rest":"/v1/baht-text","description":"Convert a baht amount (up to 12 integer digits, 2 decimals) to Thai words, e.g. 1234.50 -> \"หนึ่งพันสองร้อยสามสิบสี่บาทห้าสิบสตางค์\". Used on invoices, cheques and contracts.","input_schema":{"type":"object","properties":{"amount":{"type":["string","number"],"description":"Amount in THB, e.g. \"1234.50\". Pass a string to avoid float rounding."}},"required":["amount"],"additionalProperties":false},"suggested_price_usd":0.001},{"name":"thai_date_convert","rest":"/v1/thai-date-convert","description":"Convert between Buddhist Era (พ.ศ.) and Gregorian (ค.ศ.) dates; returns both ISO forms, Thai long/short text and Thai weekday.","input_schema":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD. Year may be CE or BE."},"calendar":{"type":"string","enum":["auto","ce","be"],"description":"auto treats years >= 2400 as BE."}},"required":["date"],"additionalProperties":false},"suggested_price_usd":0.001},{"name":"thai_id_validate","rest":"/v1/thai-id-validate","description":"Validate the format and checksum of a 13-digit Thai national ID or tax ID. Format check only; does not confirm the number is issued. The number is not stored or logged and is returned masked.","input_schema":{"type":"object","properties":{"id":{"type":["string","number"],"description":"13 digits; spaces/dashes and Thai digits accepted."}},"required":["id"],"additionalProperties":false},"suggested_price_usd":0.001},{"name":"promptpay_build","rest":"/v1/promptpay-build","description":"Build a Thai PromptPay (EMVCo) QR payload string with CRC16 for a mobile number, 13-digit national/tax ID, or 15-digit e-wallet ID, optionally with a fixed amount. Render the payload as a QR code client-side.","input_schema":{"type":"object","properties":{"proxy":{"type":"string","description":"Phone (0812345678 or 66812345678), 13-digit ID, or 15-digit e-wallet ID."},"proxy_type":{"type":"string","enum":["auto","mobile","national_id","tax_id","ewallet"]},"amount":{"type":["string","number"],"description":"Optional THB amount > 0. Omit for an open-amount QR."}},"required":["proxy"],"additionalProperties":false},"suggested_price_usd":0.002},{"name":"promptpay_validate","rest":"/v1/promptpay-validate","description":"Validate a PromptPay QR payload string: TLV structure, CRC16, PromptPay tags, proxy format/checksum, amount. Returns masked proxy and a list of issues.","input_schema":{"type":"object","properties":{"payload":{"type":"string","description":"The text decoded from the QR code."}},"required":["payload"],"additionalProperties":false},"suggested_price_usd":0.002},{"name":"address_lookup","rest":"/v1/address-lookup","description":"Look up Thai subdistricts/districts/provinces for a 5-digit postal code.","input_schema":{"type":"object","properties":{"postal":{"type":"string","description":"5-digit postal code"}},"required":["postal"],"additionalProperties":false},"suggested_price_usd":0.002},{"name":"address_search","rest":"/v1/address-search","description":"Search Thai administrative areas by name (subdistrict, district or province; Thai script; prefixes like ต. อ. จ. แขวง เขต accepted) or by postal code.","input_schema":{"type":"object","properties":{"q":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":20,"description":"default 10"}},"required":["q"],"additionalProperties":false},"suggested_price_usd":0.003},{"name":"address_normalize","rest":"/v1/address-normalize","description":"Normalize a free-text Thai address: finds the best matching subdistrict/district/province/postal code, with confidence and the leftover street text (best effort). Not stored or logged.","input_schema":{"type":"object","properties":{"text":{"type":"string","description":"Free-text address, max 500 chars."}},"required":["text"],"additionalProperties":false},"suggested_price_usd":0.005}]}