Skip to main content
Glama

Request Purchase

request_purchase

Ask to pay one purchase with a card in AI agent mode (card_id from get_agent_card; may be left out when there is only one). Within the client's limit it is approved at once and the card unfreezes for 15 minutes; above it the client taps Allow in the GuaraPay app. Pay only where the client already saved this card — you never get the card number. One purchase at a time.

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": {
      "merchant": "<merchant>",
      "amount_usd": "<amount_usd>"
    },
    "name": "request_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoWhat it is for, shown to the client: "Vercel Pro, November".
card_idNoThe agent card to pay with, from get_agent_card. Needed when the client has several.
merchantYesWhere you pay, as the client knows it: "Vercel", "OpenAI API".
amount_usdYesThe most this purchase may cost, in USD, taxes included.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With only a title annotation, the description carries the full burden and delivers: within-limit purchases approve instantly, above-limit ones require the client to tap Allow in GuaraPay, the card unfreezes for 15 minutes, and the card number is never exposed. It does not say whether the call blocks or returns pending, nor how failures/declines surface.

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 the core action and the card_id dependency, then the approval mechanics. Dense but every clause carries information; the semicolon-chained middle sentence is slightly run-on.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a financial mutation with no annotations and no output schema, the approval flow is well covered, but the agent is not told what the call returns or whether to poll get_purchase after an above-limit request—a meaningful gap for a tool that can end in a pending human decision.

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 coverage is 100%, so all four parameters are already documented. The description only restates card_id optionality and the meaning of the amount, adding no format or edge-case detail beyond the schema 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 ('Ask to pay one purchase with a card in AI agent mode') and bounds it ('one purchase at a time'), so the agent can distinguish it from deposit_to_card or payment_link without opening a schema.

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 concrete preconditions—card must come from get_agent_card, may be omitted when the client has only one card, and you may only pay where the client already saved the card. It lacks explicit when-not guidance against siblings such as cancel_purchase or payment_link, so it stops short of a 5.

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