estimate_cost
Estimate API request costs for planned tool calls before execution, accounting for cache hits and per-tool request counts, to stay within budget.
Instructions
Say what a set of tool calls will cost upstream before running them.
The tool-to-request ratio is not 1:1 — fmp_search issues two requests, fmp_price_target three, and fmp_quote falls back to one per symbol on a free key. Cached legs cost nothing. Use this before a multi-step analysis, or whenever a plan touches many symbols.
Args: calls: Tool calls to price, e.g. [{"tool": "fmp_profile", "args": {"symbol": "AAPL"}}, {"tool": "fmp_quote", "args": {"symbols": "AAPL,MSFT,NVDA"}}]
Returns per-call worst-case requests, how many legs are already cached, and the net spend against today's remaining budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |