My credits
my_creditsShow the credit balance and the "ask every time" setting, or change it.
ask_before_converting=true makes check_price ask the user in the chat before every conversion; false leaves the OK to the app's own approval of convert_to_svg. Change it only when the user asks to. Charges nothing.
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": "my_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ask_before_converting | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Set when the call could not proceed. | |
| status | No | ||
| message | Yes | The reply's text without its IDs and SVG text, for hosts that show only this. | |
| next_action | Yes | What to do next; guidance, never spending permission. | |
| request_key | No | ||
| conversion_id | No | ||
| price_credits | No | ||
| credits_charged | No | Credits charged by this call only. | |
| credits_available | No | The balance afterwards. | |
| retry_after_seconds | No | ||
| ask_before_converting | No |