Skip to main content
Glama

purchase_credits

Buy a credit bundle and receive a Stripe checkout URL to complete payment. Choose 500 credits ($5), 2,000 ($18), or 10,000 ($75).

Instructions

Purchase a credit bundle. Returns a Stripe checkout URL to complete the purchase. Bundles: 500 credits ($5), 2000 ($18), 10000 ($75).

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": {
      "bundle": "<bundle>"
    },
    "name": "purchase_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
bundleYesCredit bundle size: '500' ($5), '2000' ($18), or '10000' ($75)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the full behavioral burden. It usefully discloses that the tool returns a Stripe checkout URL and that purchase completion happens through that URL, but it omits auth requirements, whether credits are granted immediately or only after checkout, and what happens if checkout is abandoned.

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?

The description is short, front-loaded, and contains no wasted wording. The first sentence states the action, the second explains the return value, and the third lists valid bundles.

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?

The tool has one simple enum parameter and no output schema, and the description does explain the Stripe checkout URL return value. However, for a purchase mutation with no annotations, it should say more about auth, side effects, and post-checkout credit application to be fully complete.

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% and the bundle parameter already has an enum with prices documented in the schema. The description repeats the bundle sizes and dollar amounts but adds no new semantic detail such as constraints on changing bundles or defaults.

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 states a specific verb and resource: 'Purchase a credit bundle.' That is clear enough for an agent to understand the action, but it does not explicitly distinguish this purchase flow from related billing siblings such as get_billing_status or activate_billing.

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 by the action 'Purchase a credit bundle.' There is no explicit guidance on when to use this versus checking billing status, activating billing, or reviewing usage, and no prerequisites or exclusions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.