redeem_points
Redeem the user's Moneda Points for prepaid AI usage credits. Spends points (a negative points transaction) and grants the matching AI budget atomically. Enforces the minimum, the sufficient-balance check, and the monthly cap (see get_points_redemption_config). Pass a stable requestId (uuid) held across retries when you can: retrying with the same value is a no-op (returns granted:false). Omitting it is safe. The server derives the key from (user, points, 30s window) rather than minting a random one, so a retry still dedupes.
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": {
"points": "<points>"
},
"name": "redeem_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | How many points to redeem for AI credits. | |
| requestId | No | Optional idempotency key (uuid). Reuse the same value on a retry; if omitted the server derives one from (user, points, 30s window). |