Skip to main content
Glama

buy_credits

Start a credit purchase: returns a checkout URL for the user to open and pay in their browser (get tier ids from get_pricing_tiers). Credits never expire. Requires auth.

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": {
      "pricing_tier_id": "<pricing_tier_id>"
    },
    "name": "buy_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
cancel_urlNoWhere to send the user if they cancel
success_urlNoWhere to send the user after paying (default airgallery.com/credits)
pricing_tier_idYesTier id from get_pricing_tiers

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does reasonably well: it discloses that this starts a session rather than completing a charge, that payment happens externally in the browser, that auth is required, and that credits never expire. It does not say what state the purchase is in until payment succeeds or what happens on cancel, which keeps it short of a 5.

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?

A single short sentence that front-loads the action and the return value, with the tier-id dependency and auth requirement following. No redundant or filler wording.

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 three-parameter tool with no annotations and no output schema, the description covers the essential contract: what it initiates, what it returns, auth, and credit lifetime. Minor gaps remain around post-checkout fulfillment and the default success_url behavior, which the schema partially covers.

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 all three parameters are already documented, including the pricing_tier_id source. The description's restatement of the get_pricing_tiers dependency adds confirmation but no new syntax or format detail, so 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 ("Start a credit purchase") plus the observable outcome ("returns a checkout URL for the user to open and pay in their browser"). This clearly distinguishes it from siblings like get_pricing_tiers and get_credit_balance, which read or supply data rather than initiate payment.

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 the key precondition — obtain tier ids from get_pricing_tiers — and states the auth requirement, which tells the agent when this tool is callable. No explicit exclusion of alternatives is needed here since no sibling performs the same action, though it could spell out that this is the only way to add credits.

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