Skip to main content
Glama

Crear o leer BR Code Pix (copia e cola)

br-pix-brcode
Read-onlyIdempotent

Construye un BR Code Pix «copia e cola» (TLV EMVCo con GUI br.gov.bcb.pix, llave o URL dinámica, monto, txid y CRC16) o lee y revisa uno, según los manuales del Banco Central do Brasil. Solo formato; nunca afirma un pago. Cuándo: un cálculo de dinero, impuestos o matemática financiera tiene que ser exacto y reproducible (redondeo, centavos, tasas). No para: leer un payload QR EMVCo de comercio (emvco-qr-parse). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Builds a Pix "copia e cola" BR Code (EMVCo TLV with GUI br.gov.bcb.pix, key or dynamic URL, amount, txid, CRC16-CCITT) or parses and checks one, following the Banco Central do Brasil manuals. Format only; it never claims a payment. When: a money, tax or financial-math result has to be exact and reproducible (rounding, cents, rates). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
keyNoPix key (CPF, CNPJ, +55 phone, e-mail or random UUID key) (string; optional; up to 77 chars).
mccNoMerchant category code (string; optional; default "0000"; up to 4 chars; pattern ^\d{4}$).0000
urlNoDynamic location URL without https:// (instead of key) (string; optional; up to 77 chars).
txidNoTransaction id (letters and digits, max 25; "***" when none) (string; optional; default "***"; up to 25 chars; pattern ^(\*\*\*|[A-Za-z0-9]{1,25})$).***
actionNobuild a payload or parse one (optional; one of: build, parse; default "build").build
amountNoAmount in BRL (omit to let the payer type it) (number; optional; min 0.01; max 9999999999.99).
payloadNoBR Code to parse (string; optional; up to 512 chars).
single_useNoPoint of initiation 12 (single use) (boolean; optional; default false).
descriptionNoFree text for the payer (26-02) (string; optional; up to 72 chars).
postal_codeNoCEP (ID 61) (string; optional; up to 9 chars; pattern ^[0-9-]{1,9}$).
merchant_cityNoReceiver city (max 15 ASCII characters) (string; optional; up to 40 chars).
merchant_nameNoReceiver name (max 25 ASCII characters; accents are removed) (string; optional; up to 60 chars).

Output Schema

NameRequiredDescriptionDefault
crcNo
keyNo
urlNo
kindNo
noteNo
txidNo
validNo
amountNo
errorsNo
lengthNo
payloadNo
key_typeNo
merchantNo
warningsNo
single_useNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, but the description adds real beyond-schema facts: format only and it never claims a payment, deterministic output for identical input, no network or stored state, and concrete limits (64 KB input, 1 s per call, 1 MB result). Only the read-only/no-side-effect restatement is redundant with the annotations.

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?

Front-loaded with the core verb statement, but it pads with a mismatched 'Cuándo' sentence about rounding/rates, then repeats the whole definition as a truncated EN block ending in a meta-reference '[EN completo / full EN: inputSchema.description]'. Those notches cost space without adding decision value.

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?

With 12 optional parameters, an output schema, and full annotation coverage, the definition still supplies what matters: build-vs-parse mode via action, key-or-URL choice, no-payment guarantee, determinism, and hard size/time limits. Nothing an agent needs to invoke it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description does add the useful semantic point that key and dynamic URL are alternatives ('llave o URL dinámica'), but the schema already says 'instead of key' on url, so marginal value is small.

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 pair and resource: builds a Pix BR Code (EMVCo TLV with GUI br.gov.bcb.pix, key or dynamic URL, amount, txid, CRC16) or parses/checks one, per Banco Central do Brasil manuals. It explicitly names the sibling it is not for (emvco-qr-parse), so an agent can discriminate 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 Guidelines4/5

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

'No para: leer un payload QR EMVCo de comercio (emvco-qr-parse)' gives an explicit exclusion plus the alternative tool, which is the strongest part. The positive 'Cuándo' clause, however, talks about money/tax/financial-math exactness, which reads as boilerplate from a math toolkit and does not actually describe the Pix-BR-Code use case.

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.

Resources