buy_credits
ActiveTool of Hermoso
Out of credits? Top up with a credit PACK. Call with no argument to list the available packs (id · credits · price). 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 Settings → Billing.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"pack": {
"type": "string",
"description": "the pack id to buy (e.g. pack-2k) — omit to list the available packs first"
},
"confirm": {
"type": "boolean",
"description": "set true to actually charge the saved card for `pack` (required for the one-click charge; ignored on the checkout-link path)"
},
"quote_token": {
"type": "string",
"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"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
Hermoso
https://github.com/hermoso-ai/hermoso
1/7 registries