cost-estimate
Estimate the cost of a prompt in USD before sending it to Claude. Returns token counts and a cost range with disclaimer.
Instructions
Estima custo USD de um prompt ANTES de mandar para Claude. Heurística chars/4 com range ±30% (sem tokenizer real na v1.37.0 — debt em SKILL.md). Retorna estimated_input_tokens, estimated_output_tokens, estimated_usd, estimated_usd_range:[low,high], disclaimer. Triggers: "quanto vai custar", "estimativa de prompt", "estimate cost", "price this prompt".
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": {
"text": "<text>"
},
"name": "cost-estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Texto do prompt a estimar. | |
| model | No | Modelo alvo. Default: claude-sonnet-4-5. | |
| output_ratio | No | Multiplicador input → output esperado. Default: 3. | |
| chars_per_token | No | Override heurística. Default: 4. |