Show Credit Options
show_credit_optionsShow the user their Normi credit balance and the credit packs and plans they can buy, in an interactive view.
ONLY call this right after a Normi tool was refused with "Insufficient credits", passing that tool as refused_tool and its exact arguments as refused_arguments. Never call it otherwise, and never suggest buying credits on your own initiative.
The user buys on Normi's website in their browser; nothing is bought from this tool. Once they have added credits, the view lets them run the refused call again.
Cost: 0 credits
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": "show_credit_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | Set by the credits view when it re-reads the balance. Leave unset. | |
| refused_tool | No | The Normi tool that was just refused for insufficient credits. | |
| refused_arguments | No | The exact arguments of the refused call, so the user can run it again after adding credits. |