Check Usage
check_usageReturns the connected organization's current image-credit usage in item: images_used, images_allowed, overages_enabled, and next_reset. Use this to check capacity before rendering or explain a usage-limit error. When images_allowed is greater than zero, included credits remaining are max(0, images_allowed - images_used); overages_enabled indicates whether usage beyond that allowance is permitted.
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_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | No | Operation result. Check success before using this value. | |
| error | No | Error details when the operation failed; null on success. | |
| success | No | Whether the operation succeeded. If false, inspect error before retrying. |