Skip to main content
Glama

Create Pix charge

pix_create_charge

Create a Pix charge and get the copia e cola code to send to the payer. Confirm the payment status separately before telling the payer it is paid.

Instructions

Create a Pix charge (money IN) and get the Pix 'copia e cola' code to send to the payer. Use pix_check_charge to learn when it is paid. Do not tell the payer it is paid until pix_check_charge says status 'paid'.

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": {
      "amount": "<amount>",
      "description": "<description>"
    },
    "name": "pix_create_charge"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount in reais (BRL), at most 2 decimals. Examples: 49.9, "49,90", "1.234,56".
descriptionYesWhat the payer is paying for. Shown in the owner's records.
idempotencyKeyNoUnique key for this operation. Reuse the SAME key when retrying after a timeout or error so it is never done twice.
includeQrImageNoAlso return a base64 PNG QR code when the provider supplies one.
expiresInMinutesNoDefault 60.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that payment is asynchronous and must be polled via pix_check_charge, and that the output is a shareable copy-and-paste code. It omits other relevant behavior such as permission/auth needs, whether charges can be cancelled, and what happens to the charge after expiresInMinutes elapses.

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?

Three short sentences, front-loaded with the purpose and the returned artifact, followed by the follow-up tool and the safety rule. Nothing is redundant or padded.

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?

For a 5-parameter mutation tool with no annotations and no output schema, the description covers what is created, what is returned, and the critical downstream verification step. It stops short of describing the response fields (charge id, status, expiration) that an agent would need to chain calls reliably.

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%, so amount formats, idempotencyKey reuse semantics, includeQrImage, and the 60-minute default for expiresInMinutes are already documented in the schema. The description adds no parameter-level meaning beyond that, which is the expected baseline.

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 ('Create a Pix charge') and immediately scopes it with '(money IN)', which distinguishes it from the outbound sibling pix_send. It also names the concrete artifact returned ('copia e cola' code), so an agent knows exactly what the call produces.

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

Usage Guidelines4/5

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

Explicitly routes the agent to pix_check_charge for payment confirmation and adds a strong operational rule: do not tell the payer it is paid until status is 'paid'. It gives clear context but no explicit when-not-to-use-this (e.g., versus pix_send for money out, or versus reusing an existing charge).

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