Skip to main content
Glama

Prepaid credit checkout

buy_credits

Creates and returns a Stripe Checkout URL for a selected prepaid data credit pack from the configured catalog, leaving payment completion to the user.

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

Input Schema

NameRequiredDescriptionDefault
pack_idYes
return_urlNoOptional hunterkiller.io URL to return to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare a non-read-only, open-world, non-destructive operation, and the description adds real value on top: it clarifies that only a Checkout URL is created and that actual payment happens outside this call, which tells the agent no charge is incurred here. It omits whether repeated calls spawn duplicate sessions, whether the URL expires, or what auth/account state is required.

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?

A single front-loaded sentence that identifies the action, the return artifact, and the boundary of responsibility with no filler. The trailing clause is slightly wordy but earns its place by preventing the agent from assuming the tool completes payment.

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 two-parameter tool with no output schema, the description covers what is returned (a Checkout URL) and who finishes the flow, which is the key completeness question. Minor gaps remain around URL lifetime and retry/duplication behavior, but nothing essential for invoking it correctly is missing.

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?

With 50% schema description coverage, the enum on pack_id is self-documenting and return_url carries its own description, so the schema does most of the work. The description adds only that packs come "from the configured catalog," implying valid values are server-defined rather than arbitrary.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific verb ("Creates and returns") with a concrete resource ("a Stripe Checkout URL for a selected prepaid data credit pack"), so the agent knows exactly what the call produces. It does not name or differentiate from any sibling, though the sibling list contains no other purchase tool, so the risk of confusion is low.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the phrase "leaving payment completion to the user" signals this is the entry point to a purchase flow, but there is no explicit when-to-use, when-not-to-use, or prerequisite guidance (e.g. auth state, whether a pack must already be selected elsewhere). Adequate for a single-purpose tool, but an agent must infer the surrounding flow.

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.