Estimate what a run costs
estimate_costWhat one run of a workflow or agent usually costs, without starting anything. For your own workflow or agent it is the average of its recent runs. For a library template (template_id, from search_templates; kind: agent for an agent template) it is the average of the library's own test runs of it, so you can quote a cost before copying it with use_template. With no runs to go on the cost comes back empty: say it is not known, and never guess a figure.
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 |
|---|---|---|---|
| kind | No | With template_id: the kind of template (default workflow). | |
| agent_id | No | ||
| template_id | No | ||
| workflow_id | No |