Hunch: get a checkout link
hunch_buy_creditsReturns a link the person can open to buy more credits with a card on Stripe. Nothing is charged until they finish paying on that page; you cannot pay for them. Starter is $29 for 5,000 rows (a key's first purchase), Top-up is $19 for 25,000 rows on a key that already paid. Credits never expire and there is no subscription. Call it when a judging tool says the key is out of credits, or when hunch_quote says the job needs more than the key holds. Show the link to the person and let them decide.
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": "hunch_buy_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Optional. Defaults to Top-up when the key already paid, Starter otherwise. | |
| api_key | No | Only for the keyless /mcp/try connection: a key from hunch_get_key or a purchase. Leave out to use the free sample. Ignored when the connection is already signed in. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Checkout link for the person to open. | |
| plan | Yes | ||
| price_usd | Yes | ||
| applies_to | No | ||
| credits_added | Yes | ||
| expires_in_seconds | No |