estimate_cost
Estimate the USD cost of an MCP tool call before invoking it, based on historical averages over the last 30 days. Use this to make spend-aware decisions and confirm with the user before expensive calls.
Instructions
Estimate the USD cost of an MCP tool call BEFORE invoking it. Returns expected cost based on the historical average for this (server, tool, model) combo in this org over the last 30 days. Use this to make spend-aware decisions — e.g. confirm with the user before calling tools that would cost more than $0.10. Returns 0 + isUnknown=true when no history exists yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serverName | Yes | MCP server name, e.g. "playwright" or "github". | |
| toolName | Yes | Tool name within that server, e.g. "browser_navigate". | |
| model | No | Optional model identifier for cost lookup. Falls back to the historical median for this tool when omitted. |