Skip to main content
Glama

Buy a credit pack with PayPal (sandbox)

buy_credits

Start a one-off credit purchase for the signed-in account: pack_1k = 1,000 credits for US$8.00; pack_5k = 5,000 credits for US$35.00; pack_20k = 20,000 credits for US$120.00. Returns a PayPal approval link to show the user — they approve the payment on PayPal's page (never paste card details into the chat); then call confirm_credit_purchase with the order_id. Pack credits are spent after the monthly plan allowance and never expire. Sandbox only: test money. Free to call; needs the user's account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packYesWhich pack to buy

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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 (readOnly=false, openWorld=false, idempotent=false, destructive=false) by disclosing the return value (a PayPal approval link), the required human approval step on PayPal's page, a security instruction (never paste card details into the chat), the downstream confirm_credit_purchase call, and billing semantics (packs spent after the monthly allowance, never expire). This is rich, non-redundant behavioral context.

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 action and pricing, then the flow, then constraints; every sentence carries distinct information. It is on the dense side with semicolon-chained clauses, but nothing is 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?

No output schema exists, so the description carries the return-value burden and does so by naming the PayPal approval link. Combined with the approval flow, cost, sandbox caveat, and account prerequisite, an agent has everything needed to invoke and follow through correctly.

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% and the enum values are fairly self-describing, so the baseline is 3. The description adds real meaning beyond the raw enum by mapping each pack to its credit quantity and US dollar price, which helps the agent choose the right value.

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 (buy) and resource (credit pack) and enumerates exactly which packs exist with their credit amounts and prices, so the agent knows the scope without opening the schema. It is clearly distinguishable from the sibling confirm_credit_purchase, which it explicitly routes to as the follow-up step.

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 operational context: this is a one-off purchase for the signed-in account, it is sandbox/test money, it is free to call, and the user must approve on PayPal before calling confirm_credit_purchase. It stops short of stating an explicit when-not-to-use condition, but the sandbox constraint and the required follow-up step make the usage context unambiguous.

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