Server definition
- Hash
- sha256:dc48142740ae4e033a9bab1dae5abfafde3fb9158e29344af580569883d7beee
- What it is
- What a remote MCP server returned when asked what it offers: 4 tools
The blob, as servednamed by its sha256
{
"instructions": null,
"tools": [
{
"description": "Converts an amount between LATAM and reference currencies at live edge-cached rates: MXN, ARS, CLP, COP, PEN, UYU, BRL, USD and EUR. One call can fan out to several targets at once, or to every supported currency when you omit the target list, and each conversion returns the converted amount with the rate and its inverse. Use it to price a cross-border invoice, normalise a multi-country report to one currency, or estimate a payout. Do not use it to settle a payment or to book an FX trade: the rates are indicative and come from public sources, so always check the source field, which reports 'fallback-reference' when every live upstream timed out and static reference rates were used. Do not use it for validation either, which the three sibling tools handle, although latam_validate_batch can bundle an FX conversion into the same charge. Read-only and non-destructive, but NOT deterministic: it reads live market data, so two identical calls minutes apart can legitimately return different figures, and a retry is safe but will not necessarily reproduce the earlier numbers. Costs 0.008 USDC per call via x402 v2 on Base (eip155:8453) or a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header. One call is one charge no matter how many identifiers it carries, so batching is strictly cheaper than looping. It never throws on bad input: an unsupported currency code is replaced by the default and noted in fx.warnings rather than rejected, so read fx.base and fx.warnings to confirm the pair you actually got.",
"inputSchema": {
"properties": {
"amount": {
"default": 1,
"description": "Amount to convert, in the source currency, as a plain number. Defaults to 1, which gives you the raw rates.",
"type": "number"
},
"from": {
"default": "USD",
"description": "Source currency, ISO 4217. Defaults to USD. An unsupported code falls back to USD and adds a warning instead of failing.",
"enum": [
"USD",
"EUR",
"MXN",
"ARS",
"CLP",
"COP",
"PEN",
"UYU",
"BRL"
],
"type": "string"
},
"to": {
"description": "Target currency or array of target currencies, ISO 4217. Omit it to receive every supported currency except the source in a single call, which costs the same as one target.",
"oneOf": [
{
"enum": [
"USD",
"EUR",
"MXN",
"ARS",
"CLP",
"COP",
"PEN",
"UYU",
"BRL"
],
"type": "string"
},
{
"items": {
"enum": [
"USD",
"EUR",
"MXN",
"ARS",
"CLP",
"COP",
"PEN",
"UYU",
"BRL"
],
"type": "string"
},
"type": "array"
}
]
}
},
"required": [],
"type": "object"
},
"name": "latam_convert_fx",
"outputSchema": {
"properties": {
"error": {
"description": "Stable machine-readable failure code, present only on a rejected call. Common values: 'invalid_payment' and 'settlement_failed' (x402 verification or settlement refused, returned with HTTP 402), 'B2B_KEY_INVALID' and 'B2B_QUOTA_EXCEEDED' (B2B X-API-Key path). An invalid document is NOT an error: the call succeeds with valid false and a populated errors array.",
"type": "string"
},
"fx": {
"description": "Live FX conversion result.",
"properties": {
"amount": {
"description": "Source amount actually converted.",
"type": "number"
},
"base": {
"description": "Source currency actually used, ISO 4217.",
"type": "string"
},
"conversions": {
"description": "Map keyed by target currency code. Each entry carries amount (the converted value), rate (target units per one base unit) and inverseRate (base units per one target unit).",
"type": "object"
},
"ok": {
"description": "true when rates were resolved, including from the reference fallback.",
"type": "boolean"
},
"source": {
"description": "Provenance of the rates. 'fallback-reference' means every live upstream timed out and static reference rates were used, so the figures are indicative only and should not settle a payment. Check this field before booking anything.",
"enum": [
"live-edge-cache",
"live-upstream",
"fallback-reference"
],
"type": "string"
},
"supportedCurrencies": {
"description": "Every currency this endpoint can convert.",
"items": {
"type": "string"
},
"type": "array"
},
"updatedAt": {
"description": "ISO 8601 timestamp of the rate set.",
"type": "string"
},
"warnings": {
"description": "Non-fatal notes, such as an unsupported currency code that was replaced by the default.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"message": {
"description": "Human-readable explanation of the failure. Safe to log or surface to a human operator.",
"type": "string"
},
"meta": {
"description": "Provenance of the call, worth logging.",
"properties": {
"authMode": {
"description": "How the call was paid for: a per-call x402 settlement on Base, or a B2B X-API-Key quota.",
"enum": [
"x402",
"b2b-api-key"
],
"type": "string"
},
"processingTimeMs": {
"description": "Edge processing time in milliseconds, excluding payment settlement.",
"type": "number"
},
"service": {
"description": "Service identifier that produced the result.",
"type": "string"
},
"version": {
"description": "Service version.",
"type": "string"
}
},
"type": "object"
},
"ok": {
"description": "true when the request was processed and paid for. It does not mean the documents were valid: read results[].valid for that.",
"type": "boolean"
},
"results": {
"description": "Always empty for this tool, since no identifier was submitted.",
"items": {
"description": "One checked identifier. The array is in input order, so you can zip it to your request.",
"properties": {
"checksumValid": {
"description": "Whether the check digit alone matched, present when a checksum applies. valid false with checksumValid true means the structure failed, such as an impossible birth date.",
"type": "boolean"
},
"country": {
"description": "Country the document belongs to, resolved or confirmed. null when unclassified.",
"enum": [
"MX",
"AR",
"CL",
"CO",
"PE",
"UY",
"BR"
],
"type": "string"
},
"decoded": {
"description": "Everything the identifier itself encodes, which is the real value of a paid call over a local regex. The keys depend on the type: an RFC yields entityType, birthOrIncorporationDate, homoclave, providedCheckDigit, expectedCheckDigit and isGenericSatRfc; a CURP yields birthDate, sex, stateName and the check digits; a CLABE yields plazaCode, bankName, branchNumber and accountNumber; a CBU yields bankName, branchNumber and the two block check digits; a CUIT or CUIL yields entityType and the embedded dni; a RUC yields prefixDescription and the extracted dni; a Chilean RUT yields entityType and baseNumber; a CNPJ yields isHeadquarters and branchNumber; a Uruguayan RUT yields dgiPrefix. An empty object means the type was UNKNOWN.",
"type": "object"
},
"errors": {
"description": "Human-readable reasons the document failed, in English. Empty on a valid document. Show these to an operator rather than a bare false.",
"items": {
"type": "string"
},
"type": "array"
},
"formatted": {
"description": "The canonical national presentation, for example '12.345.678-5' for a Chilean RUT or '12.345.678/0001-95' for a Brazilian CNPJ. null when the value could not be classified.",
"type": "string"
},
"input": {
"description": "The value exactly as you sent it, punctuation included.",
"type": "string"
},
"label": {
"description": "Your correlation key, echoed back when you supplied one, or the shortcut key name when the value came from a shortcut field.",
"type": "string"
},
"normalized": {
"description": "Digits and letters only, upper-cased, which is what the checksum was computed over.",
"type": "string"
},
"type": {
"description": "Document type resolved, or 'UNKNOWN' when nothing matched. 'UNKNOWN' with valid false is the signal to supply country and type explicitly rather than to retry.",
"type": "string"
},
"valid": {
"description": "The single field to branch on: true only when the structure and the check digit both pass.",
"type": "boolean"
}
},
"type": "object"
},
"maxItems": 0,
"type": "array"
},
"suggestedNextSteps": {
"description": "Chaining hints for autonomous agents: sibling paid APIs commonly called right after this one, selected from what was actually found in the results. Purely advisory, never required.",
"items": {
"properties": {
"endpoint": {
"description": "Absolute HTTPS endpoint of the suggested follow-up API.",
"type": "string"
},
"reason": {
"description": "Why the follow-up call is worth making.",
"type": "string"
},
"service": {
"description": "Service identifier of the suggested follow-up API.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"summary": {
"description": "Aggregate counters, so a batch can be triaged without walking the results array.",
"properties": {
"countriesDetected": {
"description": "Distinct country codes found across the results.",
"items": {
"type": "string"
},
"type": "array"
},
"fxIncluded": {
"description": "Whether an FX block is present in this response.",
"type": "boolean"
},
"invalid": {
"description": "How many failed.",
"type": "number"
},
"total": {
"description": "How many identifiers were checked.",
"type": "number"
},
"valid": {
"description": "How many passed.",
"type": "number"
}
},
"type": "object"
},
"warnings": {
"description": "Non-fatal notes, such as a batch truncated at 100 items or a request that carried nothing to check.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"ok",
"summary",
"meta"
],
"type": "object"
}
},
{
"description": "Checks an interbank account key and names the institution behind it: the 18-digit Mexican CLABE with the Banxico Mod-10 check digit, and the 22-digit Argentine CBU with its two independent block checksums. It returns the bank name from the embedded institution code, the branch and account portions, and for a CLABE the plaza code. Use it before a first payout, when registering supplier or payroll bank details, or to reject a mistyped key at the point of entry instead of waiting for a returned transfer. Do not use it for tax IDs, which latam_validate_tax_id handles, do not loop it over a payout list when latam_validate_batch checks up to 100 keys for the same single charge, and do not read a pass as confirmation that the account exists, is open or belongs to the named holder: the checksum proves only that the key is well formed, so it catches typos, not fraud. Read-only, deterministic and fully offline at the edge, so a retry is safe. Costs 0.008 USDC per call via x402 v2 on Base (eip155:8453) or a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header. One call is one charge no matter how many identifiers it carries, so batching is strictly cheaper than looping. It never throws on bad input: a malformed key comes back with valid false and the reasons in errors, so branch on results[0].valid.",
"inputSchema": {
"properties": {
"country": {
"description": "ISO 3166-1 alpha-2 country code, MX for a CLABE or AR for a CBU. Optional, since the two standards differ in length.",
"enum": [
"MX",
"AR"
],
"type": "string"
},
"type": {
"description": "Bank account standard. CLABE is the 18-digit Mexican Banxico interbank key and CBU the 22-digit Argentine BCRA key. Omit it to auto-detect by length; supply it to force a strict check and get a clear error instead of a silent 'UNKNOWN'.",
"enum": [
"CLABE",
"CBU"
],
"type": "string"
},
"value": {
"description": "The account key, with or without spaces or dashes: 18 digits for a Mexican CLABE, 22 for an Argentine CBU. Separators are stripped before the checksum is computed.",
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"name": "latam_validate_bank_account",
"outputSchema": {
"properties": {
"error": {
"description": "Stable machine-readable failure code, present only on a rejected call. Common values: 'invalid_payment' and 'settlement_failed' (x402 verification or settlement refused, returned with HTTP 402), 'B2B_KEY_INVALID' and 'B2B_QUOTA_EXCEEDED' (B2B X-API-Key path). An invalid document is NOT an error: the call succeeds with valid false and a populated errors array.",
"type": "string"
},
"message": {
"description": "Human-readable explanation of the failure. Safe to log or surface to a human operator.",
"type": "string"
},
"meta": {
"description": "Provenance of the call, worth logging.",
"properties": {
"authMode": {
"description": "How the call was paid for: a per-call x402 settlement on Base, or a B2B X-API-Key quota.",
"enum": [
"x402",
"b2b-api-key"
],
"type": "string"
},
"processingTimeMs": {
"description": "Edge processing time in milliseconds, excluding payment settlement.",
"type": "number"
},
"service": {
"description": "Service identifier that produced the result.",
"type": "string"
},
"version": {
"description": "Service version.",
"type": "string"
}
},
"type": "object"
},
"ok": {
"description": "true when the request was processed and paid for. It does not mean the documents were valid: read results[].valid for that.",
"type": "boolean"
},
"results": {
"description": "A single-element array holding the verdict for the key you sent, with the bank name and the account breakdown under decoded.",
"items": {
"description": "One checked identifier. The array is in input order, so you can zip it to your request.",
"properties": {
"checksumValid": {
"description": "Whether the check digit alone matched, present when a checksum applies. valid false with checksumValid true means the structure failed, such as an impossible birth date.",
"type": "boolean"
},
"country": {
"description": "Country the document belongs to, resolved or confirmed. null when unclassified.",
"enum": [
"MX",
"AR",
"CL",
"CO",
"PE",
"UY",
"BR"
],
"type": "string"
},
"decoded": {
"description": "Everything the identifier itself encodes, which is the real value of a paid call over a local regex. The keys depend on the type: an RFC yields entityType, birthOrIncorporationDate, homoclave, providedCheckDigit, expectedCheckDigit and isGenericSatRfc; a CURP yields birthDate, sex, stateName and the check digits; a CLABE yields plazaCode, bankName, branchNumber and accountNumber; a CBU yields bankName, branchNumber and the two block check digits; a CUIT or CUIL yields entityType and the embedded dni; a RUC yields prefixDescription and the extracted dni; a Chilean RUT yields entityType and baseNumber; a CNPJ yields isHeadquarters and branchNumber; a Uruguayan RUT yields dgiPrefix. An empty object means the type was UNKNOWN.",
"type": "object"
},
"errors": {
"description": "Human-readable reasons the document failed, in English. Empty on a valid document. Show these to an operator rather than a bare false.",
"items": {
"type": "string"
},
"type": "array"
},
"formatted": {
"description": "The canonical national presentation, for example '12.345.678-5' for a Chilean RUT or '12.345.678/0001-95' for a Brazilian CNPJ. null when the value could not be classified.",
"type": "string"
},
"input": {
"description": "The value exactly as you sent it, punctuation included.",
"type": "string"
},
"label": {
"description": "Your correlation key, echoed back when you supplied one, or the shortcut key name when the value came from a shortcut field.",
"type": "string"
},
"normalized": {
"description": "Digits and letters only, upper-cased, which is what the checksum was computed over.",
"type": "string"
},
"type": {
"description": "Document type resolved, or 'UNKNOWN' when nothing matched. 'UNKNOWN' with valid false is the signal to supply country and type explicitly rather than to retry.",
"type": "string"
},
"valid": {
"description": "The single field to branch on: true only when the structure and the check digit both pass.",
"type": "boolean"
}
},
"type": "object"
},
"maxItems": 1,
"type": "array"
},
"suggestedNextSteps": {
"description": "Chaining hints for autonomous agents: sibling paid APIs commonly called right after this one, selected from what was actually found in the results. Purely advisory, never required.",
"items": {
"properties": {
"endpoint": {
"description": "Absolute HTTPS endpoint of the suggested follow-up API.",
"type": "string"
},
"reason": {
"description": "Why the follow-up call is worth making.",
"type": "string"
},
"service": {
"description": "Service identifier of the suggested follow-up API.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"summary": {
"description": "Aggregate counters, so a batch can be triaged without walking the results array.",
"properties": {
"countriesDetected": {
"description": "Distinct country codes found across the results.",
"items": {
"type": "string"
},
"type": "array"
},
"fxIncluded": {
"description": "Whether an FX block is present in this response.",
"type": "boolean"
},
"invalid": {
"description": "How many failed.",
"type": "number"
},
"total": {
"description": "How many identifiers were checked.",
"type": "number"
},
"valid": {
"description": "How many passed.",
"type": "number"
}
},
"type": "object"
},
"warnings": {
"description": "Non-fatal notes, such as a batch truncated at 100 items or a request that carried nothing to check.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"ok",
"summary",
"meta"
],
"type": "object"
}
},
{
"description": "Checks a mixed list of up to 100 Latin American tax IDs and bank account keys across all seven supported countries in a single paid call, each line independently auto-detected or strictly typed, and returns the same decoded detail as the single-document tools plus aggregate counters: how many passed, how many failed, and which countries were found. Attach your own label to each line and it comes back on the matching result, so the response joins straight onto a spreadsheet row or a database id. Use it to clean a customer, supplier or payroll base, to screen an uploaded file, for periodic re-validation of a CRM, and in general whenever you have more than one identifier, since one call is one charge and looping the single-document tools over 100 rows costs 100 times as much for the same answer. Do not use it for a single identifier, where latam_validate_tax_id and latam_validate_bank_account give a clearer contract, and do not send more than 100 lines: the surplus is silently dropped and a note appears in warnings, so split a larger list into successive calls. Read-only, deterministic and fully offline at the edge unless you also request FX. Costs 0.008 USDC per call via x402 v2 on Base (eip155:8453) or a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header. One call is one charge no matter how many identifiers it carries, so batching is strictly cheaper than looping. It never throws on bad input: invalid lines are reported individually with valid false and their own errors while the rest are still processed, so always read summary.invalid and then filter results on valid.",
"inputSchema": {
"properties": {
"fx": {
"description": "Optional live FX conversion bundled into the same paid call, useful when the batch feeds a cross-border payout run. Leave it out if you only need validation.",
"properties": {
"amount": {
"default": 1,
"description": "Amount to convert, in the source currency, as a plain number. Defaults to 1, which gives you the raw rates.",
"type": "number"
},
"from": {
"default": "USD",
"description": "Source currency, ISO 4217. Defaults to USD. An unsupported code falls back to USD and adds a warning instead of failing.",
"enum": [
"USD",
"EUR",
"MXN",
"ARS",
"CLP",
"COP",
"PEN",
"UYU",
"BRL"
],
"type": "string"
},
"to": {
"description": "Target currency or array of target currencies, ISO 4217. Omit it to receive every supported currency except the source in a single call, which costs the same as one target.",
"oneOf": [
{
"enum": [
"USD",
"EUR",
"MXN",
"ARS",
"CLP",
"COP",
"PEN",
"UYU",
"BRL"
],
"type": "string"
},
{
"items": {
"enum": [
"USD",
"EUR",
"MXN",
"ARS",
"CLP",
"COP",
"PEN",
"UYU",
"BRL"
],
"type": "string"
},
"type": "array"
}
]
}
},
"type": "object"
},
"items": {
"description": "The identifiers to check, in any mix of countries and types. Anything beyond the 100th item is ignored and reported in warnings.",
"items": {
"description": "One identifier to check. A plain string is also accepted and is treated as { value } with full auto-detection.",
"properties": {
"country": {
"description": "ISO 3166-1 alpha-2 country code, which narrows auto-detection to that country's standards.",
"enum": [
"MX",
"AR",
"CL",
"CO",
"PE",
"UY",
"BR"
],
"type": "string"
},
"label": {
"description": "Your own correlation key, echoed back verbatim on the matching result so you can join the response to your records. Use a row id or a column name.",
"type": "string"
},
"type": {
"description": "Document type for this line, from the same set the single-document tools accept, including CLABE and CBU. Omit to auto-detect.",
"type": "string"
},
"value": {
"description": "The identifier itself, with or without punctuation. Dots, dashes and slashes are stripped before the checksum is computed.",
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"maxItems": 100,
"minItems": 1,
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"name": "latam_validate_batch",
"outputSchema": {
"properties": {
"error": {
"description": "Stable machine-readable failure code, present only on a rejected call. Common values: 'invalid_payment' and 'settlement_failed' (x402 verification or settlement refused, returned with HTTP 402), 'B2B_KEY_INVALID' and 'B2B_QUOTA_EXCEEDED' (B2B X-API-Key path). An invalid document is NOT an error: the call succeeds with valid false and a populated errors array.",
"type": "string"
},
"fx": {
"description": "Live FX conversion result.",
"properties": {
"amount": {
"description": "Source amount actually converted.",
"type": "number"
},
"base": {
"description": "Source currency actually used, ISO 4217.",
"type": "string"
},
"conversions": {
"description": "Map keyed by target currency code. Each entry carries amount (the converted value), rate (target units per one base unit) and inverseRate (base units per one target unit).",
"type": "object"
},
"ok": {
"description": "true when rates were resolved, including from the reference fallback.",
"type": "boolean"
},
"source": {
"description": "Provenance of the rates. 'fallback-reference' means every live upstream timed out and static reference rates were used, so the figures are indicative only and should not settle a payment. Check this field before booking anything.",
"enum": [
"live-edge-cache",
"live-upstream",
"fallback-reference"
],
"type": "string"
},
"supportedCurrencies": {
"description": "Every currency this endpoint can convert.",
"items": {
"type": "string"
},
"type": "array"
},
"updatedAt": {
"description": "ISO 8601 timestamp of the rate set.",
"type": "string"
},
"warnings": {
"description": "Non-fatal notes, such as an unsupported currency code that was replaced by the default.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"message": {
"description": "Human-readable explanation of the failure. Safe to log or surface to a human operator.",
"type": "string"
},
"meta": {
"description": "Provenance of the call, worth logging.",
"properties": {
"authMode": {
"description": "How the call was paid for: a per-call x402 settlement on Base, or a B2B X-API-Key quota.",
"enum": [
"x402",
"b2b-api-key"
],
"type": "string"
},
"processingTimeMs": {
"description": "Edge processing time in milliseconds, excluding payment settlement.",
"type": "number"
},
"service": {
"description": "Service identifier that produced the result.",
"type": "string"
},
"version": {
"description": "Service version.",
"type": "string"
}
},
"type": "object"
},
"ok": {
"description": "true when the request was processed and paid for. It does not mean the documents were valid: read results[].valid for that.",
"type": "boolean"
},
"results": {
"description": "One entry per checked identifier, in input order, each carrying your label when you supplied one.",
"items": {
"description": "One checked identifier. The array is in input order, so you can zip it to your request.",
"properties": {
"checksumValid": {
"description": "Whether the check digit alone matched, present when a checksum applies. valid false with checksumValid true means the structure failed, such as an impossible birth date.",
"type": "boolean"
},
"country": {
"description": "Country the document belongs to, resolved or confirmed. null when unclassified.",
"enum": [
"MX",
"AR",
"CL",
"CO",
"PE",
"UY",
"BR"
],
"type": "string"
},
"decoded": {
"description": "Everything the identifier itself encodes, which is the real value of a paid call over a local regex. The keys depend on the type: an RFC yields entityType, birthOrIncorporationDate, homoclave, providedCheckDigit, expectedCheckDigit and isGenericSatRfc; a CURP yields birthDate, sex, stateName and the check digits; a CLABE yields plazaCode, bankName, branchNumber and accountNumber; a CBU yields bankName, branchNumber and the two block check digits; a CUIT or CUIL yields entityType and the embedded dni; a RUC yields prefixDescription and the extracted dni; a Chilean RUT yields entityType and baseNumber; a CNPJ yields isHeadquarters and branchNumber; a Uruguayan RUT yields dgiPrefix. An empty object means the type was UNKNOWN.",
"type": "object"
},
"errors": {
"description": "Human-readable reasons the document failed, in English. Empty on a valid document. Show these to an operator rather than a bare false.",
"items": {
"type": "string"
},
"type": "array"
},
"formatted": {
"description": "The canonical national presentation, for example '12.345.678-5' for a Chilean RUT or '12.345.678/0001-95' for a Brazilian CNPJ. null when the value could not be classified.",
"type": "string"
},
"input": {
"description": "The value exactly as you sent it, punctuation included.",
"type": "string"
},
"label": {
"description": "Your correlation key, echoed back when you supplied one, or the shortcut key name when the value came from a shortcut field.",
"type": "string"
},
"normalized": {
"description": "Digits and letters only, upper-cased, which is what the checksum was computed over.",
"type": "string"
},
"type": {
"description": "Document type resolved, or 'UNKNOWN' when nothing matched. 'UNKNOWN' with valid false is the signal to supply country and type explicitly rather than to retry.",
"type": "string"
},
"valid": {
"description": "The single field to branch on: true only when the structure and the check digit both pass.",
"type": "boolean"
}
},
"type": "object"
},
"maxItems": 100,
"type": "array"
},
"suggestedNextSteps": {
"description": "Chaining hints for autonomous agents: sibling paid APIs commonly called right after this one, selected from what was actually found in the results. Purely advisory, never required.",
"items": {
"properties": {
"endpoint": {
"description": "Absolute HTTPS endpoint of the suggested follow-up API.",
"type": "string"
},
"reason": {
"description": "Why the follow-up call is worth making.",
"type": "string"
},
"service": {
"description": "Service identifier of the suggested follow-up API.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"summary": {
"description": "Aggregate counters, so a batch can be triaged without walking the results array.",
"properties": {
"countriesDetected": {
"description": "Distinct country codes found across the results.",
"items": {
"type": "string"
},
"type": "array"
},
"fxIncluded": {
"description": "Whether an FX block is present in this response.",
"type": "boolean"
},
"invalid": {
"description": "How many failed.",
"type": "number"
},
"total": {
"description": "How many identifiers were checked.",
"type": "number"
},
"valid": {
"description": "How many passed.",
"type": "number"
}
},
"type": "object"
},
"warnings": {
"description": "Non-fatal notes, such as a batch truncated at 100 items or a request that carried nothing to check.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"ok",
"summary",
"meta"
],
"type": "object"
}
},
{
"description": "Checks a single Latin American tax or personal identifier and decodes what it encodes: Mexican RFC and CURP, Argentine CUIT and CUIL, Chilean RUT, Colombian NIT, Peruvian RUC, Uruguayan RUT, and Brazilian CPF and CNPJ. It runs the official check-digit algorithm of each registry, confirms the structure, and returns the canonical format plus the data embedded in the number itself, such as whether an RFC belongs to a company or an individual, the birth date and state in a CURP, the DNI inside a CUIT, or whether a CNPJ is a head office or a branch. Use it at signup, in KYC and onboarding flows, to clean a supplier record, or before sending an identifier to a registry that charges per query. Do not use it for bank account keys, which latam_validate_bank_account handles, do not loop it over a list when latam_validate_batch checks up to 100 identifiers for the same single charge, and do not expect it to confirm that the holder exists or is active: this is an offline structural and checksum audit, not a registry lookup. Read-only, deterministic and fully offline at the edge, so the same input always returns the same verdict and a retry is safe. Costs 0.008 USDC per call via x402 v2 on Base (eip155:8453) or a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header. One call is one charge no matter how many identifiers it carries, so batching is strictly cheaper than looping. It never throws on bad input: an unrecognised value comes back with type 'UNKNOWN', valid false and the reasons in errors, so branch on results[0].valid and never on the HTTP status alone.",
"inputSchema": {
"properties": {
"country": {
"description": "ISO 3166-1 alpha-2 country code. Supplying it narrows auto-detection to that country's standards and avoids an ambiguous match between same-length documents.",
"enum": [
"MX",
"AR",
"CL",
"CO",
"PE",
"UY",
"BR"
],
"type": "string"
},
"type": {
"description": "Document type, which skips auto-detection and makes the check strict. RFC is the Mexican SAT tax ID, CURP the Mexican RENAPO personal ID, CUIT and CUIL the Argentine AFIP tax and labour IDs, RUT_CL the Chilean SII ID, RUT_UY the Uruguayan DGI ID, NIT the Colombian DIAN ID, RUC the Peruvian SUNAT ID, and CPF and CNPJ the Brazilian Receita Federal personal and company IDs. Plain 'RUT' is resolved to the Chilean or Uruguayan variant by length. Supply it whenever you know it: without it an 11-digit number could be read as a CPF or a Uruguayan RUT.",
"enum": [
"RFC",
"CURP",
"CUIT",
"CUIL",
"RUT",
"RUT_CL",
"RUT_UY",
"NIT",
"RUC",
"CPF",
"CNPJ"
],
"type": "string"
},
"value": {
"description": "The identifier to check, with or without punctuation: '12.345.678-5', 'XAXX010101000' and '20-12345678-9' are all accepted. Dots, dashes and slashes are stripped before the checksum is computed.",
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"name": "latam_validate_tax_id",
"outputSchema": {
"properties": {
"error": {
"description": "Stable machine-readable failure code, present only on a rejected call. Common values: 'invalid_payment' and 'settlement_failed' (x402 verification or settlement refused, returned with HTTP 402), 'B2B_KEY_INVALID' and 'B2B_QUOTA_EXCEEDED' (B2B X-API-Key path). An invalid document is NOT an error: the call succeeds with valid false and a populated errors array.",
"type": "string"
},
"message": {
"description": "Human-readable explanation of the failure. Safe to log or surface to a human operator.",
"type": "string"
},
"meta": {
"description": "Provenance of the call, worth logging.",
"properties": {
"authMode": {
"description": "How the call was paid for: a per-call x402 settlement on Base, or a B2B X-API-Key quota.",
"enum": [
"x402",
"b2b-api-key"
],
"type": "string"
},
"processingTimeMs": {
"description": "Edge processing time in milliseconds, excluding payment settlement.",
"type": "number"
},
"service": {
"description": "Service identifier that produced the result.",
"type": "string"
},
"version": {
"description": "Service version.",
"type": "string"
}
},
"type": "object"
},
"ok": {
"description": "true when the request was processed and paid for. It does not mean the documents were valid: read results[].valid for that.",
"type": "boolean"
},
"results": {
"description": "A single-element array holding the verdict for the value you sent.",
"items": {
"description": "One checked identifier. The array is in input order, so you can zip it to your request.",
"properties": {
"checksumValid": {
"description": "Whether the check digit alone matched, present when a checksum applies. valid false with checksumValid true means the structure failed, such as an impossible birth date.",
"type": "boolean"
},
"country": {
"description": "Country the document belongs to, resolved or confirmed. null when unclassified.",
"enum": [
"MX",
"AR",
"CL",
"CO",
"PE",
"UY",
"BR"
],
"type": "string"
},
"decoded": {
"description": "Everything the identifier itself encodes, which is the real value of a paid call over a local regex. The keys depend on the type: an RFC yields entityType, birthOrIncorporationDate, homoclave, providedCheckDigit, expectedCheckDigit and isGenericSatRfc; a CURP yields birthDate, sex, stateName and the check digits; a CLABE yields plazaCode, bankName, branchNumber and accountNumber; a CBU yields bankName, branchNumber and the two block check digits; a CUIT or CUIL yields entityType and the embedded dni; a RUC yields prefixDescription and the extracted dni; a Chilean RUT yields entityType and baseNumber; a CNPJ yields isHeadquarters and branchNumber; a Uruguayan RUT yields dgiPrefix. An empty object means the type was UNKNOWN.",
"type": "object"
},
"errors": {
"description": "Human-readable reasons the document failed, in English. Empty on a valid document. Show these to an operator rather than a bare false.",
"items": {
"type": "string"
},
"type": "array"
},
"formatted": {
"description": "The canonical national presentation, for example '12.345.678-5' for a Chilean RUT or '12.345.678/0001-95' for a Brazilian CNPJ. null when the value could not be classified.",
"type": "string"
},
"input": {
"description": "The value exactly as you sent it, punctuation included.",
"type": "string"
},
"label": {
"description": "Your correlation key, echoed back when you supplied one, or the shortcut key name when the value came from a shortcut field.",
"type": "string"
},
"normalized": {
"description": "Digits and letters only, upper-cased, which is what the checksum was computed over.",
"type": "string"
},
"type": {
"description": "Document type resolved, or 'UNKNOWN' when nothing matched. 'UNKNOWN' with valid false is the signal to supply country and type explicitly rather than to retry.",
"type": "string"
},
"valid": {
"description": "The single field to branch on: true only when the structure and the check digit both pass.",
"type": "boolean"
}
},
"type": "object"
},
"maxItems": 1,
"type": "array"
},
"suggestedNextSteps": {
"description": "Chaining hints for autonomous agents: sibling paid APIs commonly called right after this one, selected from what was actually found in the results. Purely advisory, never required.",
"items": {
"properties": {
"endpoint": {
"description": "Absolute HTTPS endpoint of the suggested follow-up API.",
"type": "string"
},
"reason": {
"description": "Why the follow-up call is worth making.",
"type": "string"
},
"service": {
"description": "Service identifier of the suggested follow-up API.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"summary": {
"description": "Aggregate counters, so a batch can be triaged without walking the results array.",
"properties": {
"countriesDetected": {
"description": "Distinct country codes found across the results.",
"items": {
"type": "string"
},
"type": "array"
},
"fxIncluded": {
"description": "Whether an FX block is present in this response.",
"type": "boolean"
},
"invalid": {
"description": "How many failed.",
"type": "number"
},
"total": {
"description": "How many identifiers were checked.",
"type": "number"
},
"valid": {
"description": "How many passed.",
"type": "number"
}
},
"type": "object"
},
"warnings": {
"description": "Non-fatal notes, such as a batch truncated at 100 items or a request that carried nothing to check.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"ok",
"summary",
"meta"
],
"type": "object"
}
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:dc48142740ae4e033a9bab1dae5abfafde3fb9158e29344af580569883d7beee | sha256sum