Skip to main content
Glama

get_buy_credits

Read-only

One-time $19 USDC purchase of a 1,000-call API key. Settles to the store payTo on Base via x402 (coinbase-cdp). No Stripe, no new wallet. Retry this GET with X-PAYMENT; a paid request returns ak_live_....

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_buy_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
x_paymentNoSigned x402 payment payload

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: the exact price, credit quantity, settlement chain, protocol and facilitator (x402/coinbase-cdp), and the shape of the return value. One residual tension worth noting: readOnlyHint=true while the call spends $19 USDC, though the description discloses the charge openly so an agent is not misled about cost.

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 price and product in the first clause, with exclusions and the payment flow following in a logical order. It is telegraphic and fragmentary in places ('No Stripe, no new wallet', 'ak_live_....'), which reads tersely but wastes nothing.

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 one-parameter, no-output-schema tool, the definition covers cost, settlement, invocation and return format. It is silent on edge cases an agent would care about, notably whether re-issuing the paid GET after a successful purchase charges again or how to recover a lost key.

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 single parameter is already documented as a signed x402 payment payload, so the baseline is 3. The description adds real meaning by explaining that the header is supplied on a retry of the same GET and what a successful paid call yields.

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 action and resource with concrete terms: a one-time $19 USDC purchase of a 1,000-call API key, settled to the store payTo on Base via x402. An agent immediately knows this provisions credentials, which is distinct from the chain-read siblings listed.

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 describes the invocation flow: retry this GET with X-PAYMENT to complete payment, and a paid request returns ak_live_.... It also excludes alternatives ('No Stripe, no new wallet'), but it never names a sibling or states when a different credit/purchase tool should be preferred.

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.