Check credits
check_creditsReturns how many site credits, Website Agent credits, and Lead Gen credits the workspace has left in its current cycle, and the name of its plan. Call it before create_site, create_lead_gen_batch, or generate_image to see whether the workspace can pay for the work, and again after a large job to see what it cost. Do not call it to learn anything about a site. It changes nothing and costs no credits. A workspace with no current plan returns 0 for all three kinds and a null plan, and can read its sites but cannot create or change anything.
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": "check_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Name of the workspace's current plan, or null when it has none. | |
| siteCredits | Yes | Site credits left in the current cycle. | |
| agentCredits | Yes | Website Agent credits left in the current cycle. | |
| leadGenCredits | Yes | Lead Gen credits left in the current cycle. |