Estimate the credit cost
estimate_costWork out how many credits a submission will cost and whether the balance covers it. Nothing is submitted and no credits are spent. Send the URLs (best: invalid and duplicate URLs are counted exactly) or just url_count. Call this before submit_urls and show the result to the user.
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": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | "normal" costs 1 credit per URL. "instant" costs 10 credits per URL and is for important pages. Instant needs at least one credit purchase. | normal |
| urls | No | The URLs you plan to submit. Use this or url_count. | |
| url_count | No | Number of URLs, if you don't want to send the list. |