Skip to main content
Glama

Brazil Boleto, DARF & NF-e Key Parser (x402)

br_docs_parser

Brazilian FEBRABAN Bank Boleto (47/44), Tax/Utility Slip DARF/FGTS/IPTU (48/44), and NF-e Access Key (44) validator & decoder with post-2025 due date engine (0.008 USDC via x402 on Base).

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": {
      "code": "<code>"
    },
    "name": "br_docs_parser"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesBrazilian payment slip digitable line (47 digits for Bank Boleto, 48 digits for Tax/Utility Slip like DARF/FGTS/IPTU), 44-digit barcode, or 44-digit NF-e access key.
aiSummaryNoGenerate a concise payment/document summary via Cloudflare Workers AI (default: true).
documentTypeNoOptional explicit parser mode (default: auto).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does add genuinely useful non-schema information: the per-call cost (0.008 USDC via x402 on Base) and the post-2025 due date engine, which signals paid, network-backed execution. However it omits what a failed validation looks like, whether a charge occurs on invalid input, and whether any state is written.

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

Conciseness4/5

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

A single front-loaded sentence organized by supported document type, with the cost note trailing. It is dense jargon but every clause carries information; the only weakness is that pricing and due-date-engine details are compressed into the same sentence as the core purpose.

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

Completeness3/5

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

Three well-documented parameters are covered, but there is no output schema and the description never indicates what comes back — a validity verdict, decoded fields, and optionally an AI-generated summary (per the `aiSummary` param). For a paid validator/decoder, the return shape and failure modes are an unaddressed gap.

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 coverage is 100%, so all three parameters are already self-documented in the schema. The description's digit-length mapping (47/48/44) reinforces the `code` parameter's accepted forms but adds no syntax, format, or constraint detail beyond what the schema states. 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?

States a specific verb pair ("validator & decoder") and a precisely enumerated resource set (Bank Boleto 47/44, Tax/Utility Slip DARF/FGTS/IPTU 48/44, NF-e Access Key 44), including the digit-length conventions for each. An agent immediately knows this handles Brazilian payment/document codes, not generic text parsing.

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 enumerated input formats — call this when you have a 47/44/48-digit Brazilian slip or NF-e key to validate or decode. There is no explicit statement of when not to use it, no mention of error behavior on malformed input, and no alternatives (there are no siblings, so this is a smaller gap).

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.