Show Plans & Credits (Popcraft)
popcraft_show_plans_and_creditsShow the user their current credit balance and plan with live plan/credit-pack pricing and direct purchase links — use this as the recovery step after a popcraft_generate_* call fails with insufficient credits, or whenever the user asks about pricing/plans/credits. Pass intent:"topup" (out of credits / buy more) or intent:"upgrade" (plan change / model locked) so the response is ordered for that purchase path. The returned text is ready-made, user-facing copy whose Markdown links point at the exact purchase pages — relay it verbatim (do NOT summarize, reorder, or drop the links; in widget-capable clients you may add that the pricing card above shows the same options).
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": "popcraft_show_plans_and_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | No | "general" (default) orders by account state; "topup" leads with credit packs (out-of-credits recovery); "upgrade" leads with subscription plans |