Skip to main content
Glama

Validar Pix copia e cola

validar_pix

Validates Pix copy-and-paste payloads by checking CRC16 and required fields, then extracts the Pix key, recipient name, city, and amount.

Instructions

Confere o CRC16 e os campos obrigatórios de um payload Pix e extrai chave, nome, cidade e valor.

Input Schema

NameRequiredDescriptionDefault
payloadYesTexto do Pix copia e cola

Output Schema

NameRequiredDescriptionDefault
nomeNo
tipoNo
txidNo
chaveNo
errosYes
valorNo
cidadeNo
validoYes
crcCalculadoNo
crcInformadoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It usefully discloses that CRC16 verification and required-field checking occur and what is extracted, which implies a read-only validation. It does not describe outcomes for invalid payloads (error vs. validity flag) or any side effects, leaving a real gap.

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

Conciseness5/5

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

A single sentence, front-loaded with the verification action and ending with the extraction outcome. No redundant or filler text.

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

Completeness4/5

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

An output schema exists, so return values needn't be explained, and the single parameter is fully documented in the schema. The description covers the core behavior and extraction output; only failure-mode behavior for invalid payloads 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?

There is a single parameter with 100% schema description coverage ('Texto do Pix copia e cola'), so the schema does the documentation work. The description references the payload concept but adds no format details, syntax, or size constraints beyond the schema — the baseline 3 applies.

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?

The description names two specific verbs ('Confere' and 'extrai') on a concrete resource ('payload Pix') and enumerates the extracted fields (chave, nome, cidade, valor). This clearly separates it from generation-oriented siblings like gerar_pix without ambiguity.

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

Usage Guidelines3/5

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

Usage is implied by the purpose: an agent can infer the tool applies to a Pix copia e cola string. However, there is no explicit statement of when to prefer this over gerar_pix or validar_boleto, nor any exclusion or prerequisite guidance.

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