Skip to main content
Glama

Lunium — Brazilian PIX and stablecoin payments

State and receipt of a crypto sale

lunium_get_crypto_sale
Read-onlyIdempotent

Requires an API key. Returns the current state of a crypto sale and, once settled, the receipt: pix_e2e (Central Bank identifier), receipt_url (a page to show a person), receipt_pdf_url and verify_url (hand it to a counterparty so they can check without trusting you). All four arrive together — never construct these URLs by hand and never make a second call for them.

Use it after lunium_confirm_crypto_sale and after the crypto has been sent to the deposit address. Poll no more than once every 10-15 seconds: polling every second consumes the entire request budget and starts returning quota errors that look like failures.

receipt_pdf_url carries the recipient's full name and tax number. Give the link to your user; do not fetch its contents into the conversation and do not forward it to third parties — verify_url exists for that.

Do not use it to check a payment made outside Lunium — that is lunium_verify_pix_payment. Do not report failure because the state is still pending: outside Polygon the wait is the chain's confirmation requirement, sometimes hours, and there is no cancel.

Errors: acao=repetir → poll again. acao=esperar → you are polling too fast; back off, the order is unaffected. A not-found (acao=corrigir) → the id is wrong or belongs to another key; do not retry the same id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cashout_idYesOrder id returned by lunium_quote_crypto_sale. Not the external_id, not the E2E.

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description reveals critical behaviors: all four receipt fields arrive together, URLs must never be hand-constructed, polling too fast consumes the request budget and yields quota errors, and receipt_pdf_url contains PII that must not be fetched or forwarded. It also states there is no cancel and that pending states are normal outside Polygon. No annotation contradiction exists.

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 dense but every sentence earns its place: return fields, usage ordering, polling limits, PII handling, exclusions, and error semantics are each covered in a structured, front-loaded way. It is long because the tool has nuanced failure modes and privacy constraints, not because of padding.

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 polling tool with no output schema, the description is complete: it names all returned values, explains their purpose, gives the prerequisite workflow, sets polling expectations, covers quota errors, addresses PII handling, and routes the agent away from inappropriate uses. An agent has everything needed to call it correctly.

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?

The schema already covers the single parameter fully, specifying that cashout_id is the order id from lunium_quote_crypto_sale and not the external_id or E2E. The description reinforces the context of the parameter but adds little semantic meaning beyond the schema, so the high-coverage baseline of 3 is appropriate.

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 uses a specific verb and resource: it returns the current state of a crypto sale and the settled receipt fields (pix_e2e, receipt_url, receipt_pdf_url, verify_url). It also distinguishes itself from lunium_verify_pix_payment and references the preceding lunium_confirm_crypto_sale, making the tool's role unambiguous.

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?

The description explicitly states when to call the tool (after confirming the sale and sending crypto to the deposit address), how often to poll (10-15 seconds), when not to use it (payments outside Lunium), and how to interpret error codes (acao=repetir, esperar, corrigir). It also warns against retrying the same id on not-found, providing a clear decision path.

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