Skip to main content
Glama

Arquivix Notas · NFS-e

credits_purchase

Destructive

Create a charge to buy avulso invoice credits (R$ 1.14 per note, minimum 6 notes, they never expire). Unit price is 1.14 BRL. method "pix" returns a QR Code image, the copy-and-paste code and a payment link; method "card" returns a Stripe checkout link. This tool only creates the charge: the payment is completed by the person, and the server never moves money. Without confirm: true it changes nothing and returns a preview; with confirm: true it runs. The preview shows the quantity, the total in BRL and the method.

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": {
      "units": "<units>",
      "method": "<method>"
    },
    "name": "credits_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPix only: name of the buyer. Omit to use the company name.
unitsYesNumber of invoices to buy (at least 6).
methodYesHow the person will pay.
tax_idNoPix only: CPF or CNPJ of the buyer, who receives the invoice for these credits. Omit to use the first company of the workspace.
confirmNotrue runs the action. Without it nothing changes and only a preview is returned.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the server never moves money, that the human completes payment out-of-band, that without confirm:true nothing changes and a preview is returned, and what the preview contains. This meaningfully clarifies the destructiveHint=true annotation by explaining the preview gate rather than contradicting it.

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-loaded with purpose and price, then method outcomes, then the confirm semantics — a sensible order with no filler. The only waste is the near-duplicate price statement ('R$ 1.14 per note' and 'Unit price is 1.14 BRL'), which repeats the same fact twice.

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 5-parameter mutation tool with no output schema, the description covers the essentials an agent needs: cost, minimum, expiry, per-method return artifacts, and the preview/confirm contract. Nothing material is left to inference before calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: the per-note price, the six-note minimum, that credits never expire, and the distinct return payloads for each method value. It does not clarify the pix-only name/tax_id fallback behavior, which remains schema-only.

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 charge to buy avulso invoice credits') and immediately scopes what the tool does not do ('only creates the charge... the server never moves money'). The pricing and minimum-quantity facts make it unmistakable against a balance-checking sibling like credits_balance.

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?

Gives clear conditional guidance for the two payment methods (pix returns QR code, copy-and-paste code and link; card returns a Stripe checkout link) and an explicit rule for when to pass confirm. It does not name an alternative tool or state when not to buy credits, so it stops short of full when/when-not guidance.

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