Ask to turn on pay as you go or change its monthly limit
turn_on_pay_as_you_goAsks to turn on pay as you go for the workspace with a monthly limit, or to change the monthly limit of one that is already on (raising and lowering both ask). It is the person's agreement to be charged, so it only asks: Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended. The request states the price rule, the limit and the terms it agrees to, and nothing is agreed until the person approves it there; say it waits for them, never that it is on. First call get_pay_as_you_go and tell the person how it works. Use only a monthly limit the person named. Only owners and admins can; the answer says so for anyone else.
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": {
"monthly_limit_usd": "<monthly_limit_usd>"
},
"name": "turn_on_pay_as_you_go"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| monthly_limit_usd | Yes | The most pay-as-you-go work may be charged in one calendar month (UTC), in US dollars with at most two decimal places (150 or 12.50). |