Estimate Cost Before a Call
estimate_costWhat a tool call will cost BEFORE you make it, and what is left: the billing kind (free, credits at actual vendor cost, credits, or a prepaid unit), the credit ceiling the product reserves, and the remaining balance (plus free questions left on the free plan). For a workspace on prepaid credits it also returns the exact price of the call from its args (prepaid_credits: tier, units, price_usd, balance_usd). Pass the tool and action you plan to call, as listed in tools/list, and its args. Cost: FREE, never charged.
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": {
"tool": "<tool>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | The arguments you plan to pass. With prepaid credits the exact price depends on them (keyword suggestions per seed, row-limited reads per 200 rows). | |
| tool | Yes | The tool you plan to call, e.g. keyword_research or run_ai_visibility_scan. | |
| units | No | How many units the call covers when it scales, e.g. keyword batches. | |
| action | No | Its action, for consolidated tools (e.g. metrics). | |
| intent | No | Optional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details. | |
| taskId | No | task_manage execute: the task to estimate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||