Skip to main content
Glama

Lunium — Brazilian PIX and stablecoin payments

How much this taxpayer can pay right now

lunium_check_payer_limit
Read-onlyIdempotent

Requires an API key. Returns how much a specific Brazilian taxpayer (CPF for a person, CNPJ for a company) can move through a PIX charge right now, in cents. Read-only — no charge is created.

Call it before lunium_create_pix_charge whenever the payer is new or the amount is not trivial. Limits are an anti-fraud ladder per taxpayer: a first-time payer starts small and grows with settled history, so a value that passed for someone else can be refused for this one. Checking first turns a rejected charge into a conversation about the right amount.

Send digits only — no dots, slashes or dashes. Do not use it as a document-validity check, and do not read a high limit as approval: a charge can still be refused for other reasons.

Errors: acao=corrigir → the document is malformed, fix the digits. acao=esperar → quota, retry later with the same input. acao=repetir → transient, retry once. If the returned maximum is below what the user wants, offer that value or a different payer — do not attempt the charge anyway.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payer_tax_numberYesPayer's CPF (11 digits) or CNPJ (14 digits), digits only.

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/idempotentHint annotations by explaining the anti-fraud ladder, why limits vary per payer, and the acao error taxonomy with retry behavior. It also warns that approval can still fail for other reasons, which is non-obvious behavioral context.

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?

The description is longer than average, but every section earns its place: return value, usage conditions, behavioral reasoning, input format, and error handling. The most decision-relevant information is front-loaded in the first sentence.

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 single-parameter read-only tool with no output schema, it fully covers units, document formats, error cases, retry guidance, and follow-up behavior. An agent has enough information to invoke it correctly and interpret the result.

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%, including the digits-only CPF/CNPJ pattern, so the baseline is 3. The description reinforces the digits-only rule but does not add meaningful parameter semantics beyond what the schema already provides.

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: it returns how much a CPF/CNPJ taxpayer can move through a PIX charge right now, in cents. It also explicitly says read-only and that no charge is created, which separates it from mutation siblings like lunium_create_pix_charge.

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 explicit when-to-use guidance: call it before lunium_create_pix_charge when the payer is new or the amount is not trivial. It also lists exclusions: don't use it as a document-validity check and don't treat a high limit as approval.

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: create vs verify PIX, quote vs confirm crypto sales, check limits, list options, and sandbox provisioning. The only potentially close pair (get_crypto_sale and verify_pix_payment) are explicitly disambiguated in descriptions, one for internal orders, the other for external verification.

Naming Consistency5/5

All tools follow a consistent `lunium_verb_noun` pattern in snake_case. Verbs are descriptive (check, create, get, list, quote, confirm, verify) and nouns clarify the resource. No mixed conventions or vague verbs.

Tool Count5/5

9 tools is well within the ideal 3-15 range. Each tool covers a distinct step in the payment flow (limits, quoting, confirming, status, verification, sandbox) without redundancy. The count feels justified for the server's scope.

Completeness4/5

The flow for both PIX charges and crypto sales is well covered: create, check limits, get status, quote, confirm, and retrieve receipts. The only notable gap is the absence of a list operation for past charges/sales, and no explicit cancel for a PIX charge, but the descriptions indicate these are handled via statuses and terminal states rather than dedicated tools. Overall, the surface is complete for the stated purpose.

Resources