Skip to main content
Glama

Lunium — Brazilian PIX and stablecoin payments

State of a PIX charge

lunium_get_pix_charge
Read-onlyIdempotent

Requires an API key. Returns the state of a charge created with lunium_create_pix_charge. Read BOTH status (PIX state) and settlement_status (crypto delivery). status=paid alone does not mean crypto arrived. status=paid plus settlement_status=sent reports delivery; settlement_proof=confirmed means the API has chain confirmation evidence. broadcast means a transaction was reported without a recorded confirmation; missing evidence does not prove failure or that the transaction is still unconfirmed. reported means the service reported delivery without confirmation evidence; none means no delivery proof, and simulated is test-only. Show settlement_tx_hash and settlement_tx_url when present, but a hash alone is not confirmation. Never describe sandbox=true as a real payment.

delayed is the state that costs money when misread: the PIX WAS PAID and the provider is holding the release, commonly on a payer's first operation. The response carries delay_until and e_falha=false, and it becomes paid on its own. Do not tell the user the payment failed, do not create a second charge, do not ask them to pay again.

Use it only for charges you created. For any other PIX use lunium_verify_pix_payment. Poll at most every 10-15 seconds.

Errors: acao=esperar → back off, the charge is unaffected. acao=repetir → retry once. expired is terminal: create a new charge only after telling the user the old one is dead, and never while a previous one is pending or delayed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
charge_idYesCharge id returned by lunium_create_pix_charge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Far exceeds the annotations: it decodes the status/settlement_status state machine, warns that status=paid alone does not mean crypto arrived, explains that broadcast/reported/none do not prove failure, and stresses that 'delayed' means the PIX was paid and must not trigger a second charge. It adds auth requirements, rate limits, and destructive-mistake warnings the readOnly/idempotent hints cannot convey.

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?

Front-loads the core purpose, then layers in escalation-relevant detail; nearly every sentence carries operational weight (state meanings, sandbox warning, error actions). It is dense and slightly sprawling across three paragraphs, but the length is largely justified by the subtle state machine it describes.

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 no output schema, the description must carry return-value semantics, and it does so thoroughly — decoding every status/settlement_status value, interpreting delay_until, settlement_proof, settlement_tx_hash/url, and sandbox. Error handling and the 'expired is terminal' path are also covered, leaving nothing an agent needs before calling.

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?

Only one parameter and schema coverage is 100%, with the schema already describing charge_id as the id returned by lunium_create_pix_charge. The description references charge semantics extensively but adds no format or syntax detail beyond the schema, so 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?

States a specific verb and resource — 'Returns the state of a charge created with lunium_create_pix_charge' — and explicitly distinguishes itself from the sibling lunium_verify_pix_payment. An agent can tell exactly what this does and when it does not apply without opening the schema.

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 scope ('only for charges you created'), names the alternative for other PIX (lunium_verify_pix_payment), specifies a polling cadence (10-15 seconds), and maps error codes to actions (back off, retry once, terminal expired). Nothing is left to inference.

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