get_credits
Retrieve a workspace's prepaid credit balance, payment methods, top-up intents, and recent ledger so you can check allowance and resolve overage cutoffs.
Instructions
The workspace's prepaid credits: balance_micros (USD micros, one USDC base unit each; below zero, overage went unpaid and the priced meters are cut off until a deposit covers it), whether this instance takes payment (enabled) and by which methods (usdc now; card next), the chain, receiving address and USDC contract, the overage price per meter, the open top-up intents and the recent ledger (deposits, charges, grants). Works past the allowance cutoff. The twin of GET /workspaces/{id}/credits.
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": {
"workspace_id": "<workspace_id>"
},
"name": "get_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | your own workspace (whoami's workspace_id) |