Convert Stars
price_inUse this only to convert a price in Telegram Stars into TON or USD at the display rates GiftChecker uses. Do not use it to look up what a gift costs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stars": "<stars>",
"currency": "<currency>"
},
"name": "price_in"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stars | Yes | Amount in Telegram Stars. | |
| currency | Yes | Target currency. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| note | Yes | ||
| rates | No | ||
| stars | Yes | ||
| amount | Yes | ||
| currency | Yes |