Skip to main content
Glama
Hermoso

Hermoso

Official

Buy credits

buy_credits

Top up account credits by listing available packs or purchasing one via saved card, Stripe checkout link, or agent machine payment to keep ad tools running.

Instructions

Out of credits? Top up with a credit PACK. Call with no argument to list the available packs (id · credits · price), from the smallest ($10 for 400 credits, for something small and quick) up. If the account has a saved card and you have billing-admin rights, calling with pack quotes the exact charge and calling again with confirm:true AND the quote's quote_token charges the saved card instantly (same one-click top-up as the app — no redirect). If there's no saved card yet, you get a Stripe checkout URL to hand your human for the FIRST purchase; their card saves for one-click after that. Packs only; subscriptions are managed by a person in Billing. IF YOU ARE AN AGENT HOLDING YOUR OWN PAYMENT CREDENTIAL, there is a third path that needs no human at all: POST /api/billing/machine-payment with a packId answers HTTP 402 carrying an MPP challenge, and grants the pack once you authorise and retry with the credential — the same packs, the same prices, the same credits. GET /api/billing/config carries a machinePayments block listing the packs with their per-credit rates and saying whether that lane is enabled on this server. Most agents do NOT have their own credential yet, so the checkout link above remains the normal path. To stop running out entirely, turn on auto-reload with set_auto_reload (admin) — low balances then top themselves up from the saved card automatically.

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": "buy_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
packNothe pack id to buy (e.g. pack-2k) — omit to list the available packs first
confirmNoset true to actually charge the saved card for `pack` (required for the one-click charge; ignored on the checkout-link path)
quote_tokenNothe quoteToken returned by the quote step — REQUIRED (with confirm:true) to charge; it binds the exact pack + price you quoted (10-minute validity) and makes a retried confirm idempotent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.161
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "amountUsd": {
      -      "description": "USD amount of the checkout link",
      -      "type": "number"
      -    },
      -    "credits": {
      -      "description": "credits added by a completed top-up (or bought by the checkout link)",
      -      "type": "number"
      -    },
      -    "ok": {
      -      "description": "true when a one-click top-up charge succeeded",
      -      "type": "boolean"
      -    },
      -    "packId": {
      -      "description": "the pack id the checkout link buys",
      -      "type": "string"
      -    },
      -    "packs": {
      -      "description": "available credit packs ({id, credits, priceUsd}) when listing",
      -      "items": {},
      -      "type": "array"
      -    },
      -    "quote": {
      -      "description": "the one-click charge quote ({packId, credits, priceUsd, card}) awaiting confirm:true"
      -    },
      -    "url": {
      -      "description": "Stripe checkout URL for a first purchase (no saved card yet)",
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changedv0.1.15
    • addedInput schema / properties / quote_token
      Added value: +{
      +  "description": "the quoteToken returned by the quote step — REQUIRED (with confirm:true) to charge; it binds the exact pack + price you quoted (10-minute validity) and makes a retried confirm idempotent",
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that the charge is an instant no-redirect one-click against a saved card, requires billing-admin rights, that the quote_token is valid 10 minutes and binds pack+price, and that the first purchase needs a human with a Stripe redirect before the card is saved. It also covers the fallback machine-payment lane and the 402 challenge, which the annotations (openWorldHint, destructiveHint:false) do not convey.

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 the primary action and the listing behaviour, then progressively adds the rarer paths; each block maps to a real decision the caller must make. It is dense and the machine-payment detour with raw endpoint paths plus the all-caps agent note is longer than needed for the common case, but nothing is redundant.

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?

For a payment tool with no output schema, the description supplies everything needed to call it safely: prerequisites (saved card, billing-admin), the confirmation-token flow, what each path returns in practice (pack list, quote charge, checkout URL), and where recurring top-ups live. Nothing material is left to inference.

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 already 100%, so the schema carries the per-parameter definitions; the description's value-add is the sequencing between them (quote first, then confirm plus quote_token, confirm ignored on the checkout-link path) and the 10-minute validity window. That is genuine orchestration meaning beyond the field descriptions, though the individual field semantics are not extended much further.

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?

Opens with a specific problem and action ('Out of credits? Top up with a credit PACK') and immediately scopes it: packs only, subscriptions are handled elsewhere. It names the adjacent tool set_auto_reload as the recurring alternative, so the agent can distinguish it from siblings without opening a schema.

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?

Gives explicit conditional routing: no-argument call lists packs, `pack` alone produces a quote, `pack` + confirm + quote_token charges, and no saved card yields a Stripe checkout URL for the human. It also states an exclusion ('Packs only; subscriptions are managed by a person in Billing') and points to set_auto_reload for the recurring-balance case.

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

Deploy Server

Other Tools