Skip to main content
Glama

VARRD — Statistically Validated Trading Edges + AI Research Engine

buy_credits

Buy credits for the edge library and AI research. Default $5 minimum. Free — no credits consumed to call this.

TWO PAYMENT METHODS: card (default): Returns a Stripe Checkout link for your user to click and pay. After payment, call check_balance to confirm credits were added. crypto: USDC on Base. Fully autonomous — no human needed. Three steps: 1. buy_credits(payment_method='crypto') → returns deposit address + payment_intent_id 2. Send USDC to the deposit address (use your wallet tool) 3. buy_credits(payment_intent_id='pi_...') → confirms payment, credits added instantly If you have wallet access, this is the fastest path — fully machine-to-machine.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amount_centsNoAmount in cents (default 500 = $5.00). Minimum $5.
payment_methodNoPayment method: 'card' (default, Stripe Checkout) or 'crypto' (USDC on Base).card
payment_intent_idNoFor crypto: Stripe PaymentIntent ID from a previous buy_credits call. Pass after sending USDC to confirm.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
depositNoUSDC deposit address for crypto payment
checkout_urlNoStripe Checkout link for card payment
current_balance_centsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedOutput schema / description
      Removed value: -"Response varies by payment path. Card: returns checkout_url for user. Crypto step 1: returns deposit address + payment_intent_id. Crypto step 2 (confirm): returns status + new balance."
    • changedOutput schema / properties / checkout_url / description
      Previous value: -"Stripe Checkout link (card payment)"New value: +"Stripe Checkout link for card payment"
    • changedOutput schema / properties / deposit / description
      Previous value: -"Crypto deposit details (USDC on Base)"New value: +"USDC deposit address for crypto payment"
    • removedOutput schema / properties / deposit / properties
      Removed value: -{
      -  "address": {
      -    "type": "string"
      -  },
      -  "amount_usdc": {
      -    "type": "string"
      -  },
      -  "chain": {
      -    "type": "string"
      -  },
      -  "network": {
      -    "type": "string"
      -  },
      -  "token": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / error
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / instructions
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / new_balance_cents
      Removed value: -{
      -  "description": "Balance after credit (confirm only)",
      -  "type": "integer"
      -}
    • removedOutput schema / properties / payment_intent_id
      Removed value: -{
      -  "description": "For crypto: pass back to confirm payment",
      -  "type": "string"
      -}
    • removedOutput schema / properties / purchase_amount_cents
      Removed value: -{
      -  "type": "integer"
      -}
    • removedOutput schema / properties / status
      Removed value: -{
      -  "description": "Payment confirmation status (confirm only)",
      -  "enum": [
      -    "credited",
      -    "already_credited",
      -    "pending",
      -    "failed"
      -  ],
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Response varies by payment path. Card: returns checkout_url for user. Crypto step 1: returns deposit address + payment_intent_id. Crypto step 2 (confirm): returns status + new balance.",
      +  "properties": {
      +    "checkout_url": {
      +      "description": "Stripe Checkout link (card payment)",
      +      "type": "string"
      +    },
      +    "current_balance_cents": {
      +      "type": "integer"
      +    },
      +    "deposit": {
      +      "description": "Crypto deposit details (USDC on Base)",
      +      "properties": {
      +        "address": {
      +          "type": "string"
      +        },
      +        "amount_usdc": {
      +          "type": "string"
      +        },
      +        "chain": {
      +          "type": "string"
      +        },
      +        "network": {
      +          "type": "string"
      +        },
      +        "token": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "instructions": {
      +      "type": "string"
      +    },
      +    "new_balance_cents": {
      +      "description": "Balance after credit (confirm only)",
      +      "type": "integer"
      +    },
      +    "payment_intent_id": {
      +      "description": "For crypto: pass back to confirm payment",
      +      "type": "string"
      +    },
      +    "purchase_amount_cents": {
      +      "type": "integer"
      +    },
      +    "status": {
      +      "description": "Payment confirmation status (confirm only)",
      +      "enum": [
      +        "credited",
      +        "already_credited",
      +        "pending",
      +        "failed"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / payment_intent_id / description
      Previous value: -"Stripe PaymentIntent ID from a previous buy_credits call. Pass this after sending USDC to confirm payment and receive credits."New value: +"For crypto: Stripe PaymentIntent ID from a previous buy_credits call. Pass after sending USDC to confirm."
    • addedInput schema / properties / payment_method
      Added value: +{
      +  "default": "card",
      +  "description": "Payment method: 'card' (default, Stripe Checkout) or 'crypto' (USDC on Base).",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / payment_intent_id
      Added value: +{
      +  "description": "Stripe PaymentIntent ID from a previous buy_credits call. Pass this after sending USDC to confirm payment and receive credits.",
      +  "type": "string"
      +}
  5. Added

TDQS

A5/5.0
Behavior5/5

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

Discloses that the tool is free (no credits consumed), returns a Stripe Checkout link for card, and provides a deposit address and payment_intent_id for crypto. It also explains the two-step confirmation behavior, offering context beyond the annotations.

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 well-organized with clear headings and numbered steps, making it scannable. Every sentence provides actionable information without waste.

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?

Covers the full payment lifecycle, including fallback to check_balance, exact call sequence for crypto, and the condition of instant credit addition after confirmation. Given the complexity of a payment tool, this is complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already describes all three parameters, but the description adds operational meaning by explaining the two-phase crypto flow (first with payment_method='crypto', then with payment_intent_id to confirm) and the default amount_cents. This makes the parameters' roles clear in context.

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?

The description clearly states the tool 'Buys credits for the edge library and AI research' and details the two payment methods. It also distinguishes itself from the sibling check_balance by referencing it for post-payment confirmation.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance: card for user-mediated Stripe payment, crypto for autonomous machine-to-machine flow when wallet access is available. It also instructs the agent to call check_balance after card payment, naming a sibling alternative.

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.