Skip to main content
Glama

LATAM Business, Fiscal & FX (x402)

Validate up to 100 LATAM tax IDs and bank accounts in one call

latam_validate_batch
Read-onlyIdempotent

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": "<items>"
    },
    "name": "latam_validate_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
fxNoOptional 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.
itemsYesThe identifiers to check, in any mix of countries and types. Anything beyond the 100th item is ignored and reported in warnings.

Output Schema

NameRequiredDescriptionDefault
fxNoLive FX conversion result.
okYestrue when the request was processed and paid for. It does not mean the documents were valid: read results[].valid for that.
metaYesProvenance of the call, worth logging.
errorNoStable 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.
messageNoHuman-readable explanation of the failure. Safe to log or surface to a human operator.
resultsNoOne entry per checked identifier, in input order, each carrying your label when you supplied one.
summaryYesAggregate counters, so a batch can be triaged without walking the results array.
warningsNoNon-fatal notes, such as a batch truncated at 100 items or a request that carried nothing to check.
suggestedNextStepsNoChaining 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, idempotent and closed-world safety, yet the description adds substantial operational detail beyond them: per-call pricing (0.008 USDC via x402 on Base or X-API-Key), the HTTP 402 payment failure mode, silent truncation of surplus lines with a warnings note, and per-line error semantics with valid=false so callers read summary.invalid first. It also discloses that FX is optional and offline unless requested.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is well front-loaded and dense with useful facts, but the text runs long and repeats the pricing argument twice ('one call is one charge and looping... costs 100 times as much' and 'One call is one charge no matter how many identifiers it carries, so batching is strictly cheaper than looping'). The redundancy costs space without adding new information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, nested-schema batch tool with an output schema, the description supplies everything an agent needs: cost model, payment failure behavior, truncation policy, error handling, and the label-join mechanism. Nothing material about calling it correctly is left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the label is echoed back for spreadsheet/database joins, each line is independently auto-detected or strictly typed, and the 100-item cap is enforced by silent drop plus warning. These are behavioral contract details about how items and labels behave, not restatements of the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource up front: checks a mixed list of up to 100 LATAM tax IDs and bank account keys across seven countries in one call. It also distinguishes itself from the single-document siblings by name, so an agent can tell batch from single without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use scenarios (cleaning a customer/supplier/payroll base, screening an uploaded file, periodic CRM re-validation) and explicit when-not guidance: use latam_validate_tax_id or latam_validate_bank_account for a single identifier, and split lists over 100 into successive calls. The alternative and the selecting condition are both named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.