Set ticket estimate
set_ticket_estimateCreate or update a ticket's effort estimate, split into four parts, each a low–high range: human work, human time steering Claude, Claude (agent) runtime, and token cost. Token cost is NOT entered: it is computed server-side from the token counts × the model price in the price table (list_model_prices) and frozen into the estimate. Tokens describe the midpoint of the Claude range; the cost range scales with the Claude range. Human cost (human_cost_low/high) is also computed: (human work + steering hours) × the project's hourly rate (fallback: customer default), frozen with the estimate. ai_cost is the EXACT KI cost offered to the customer: token cost converted into the project currency at the stored exchange rate (fx_rates, frozen as fx_rate); total_cost_low/high = human cost + ai_cost. Saving a draft edits it in place; saving after it was sent/approved/rejected creates a NEW VERSION and the old one becomes 'superseded' (still readable). Only the fields you pass change. Internal staff only. Next step: send_ticket_estimates.
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": {
"ticket_id": "<ticket_id>"
},
"name": "set_ticket_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Named selections for subtotals/filters, e.g. a round 'RE ab 06.10.26' or 'Quick Wins' | |
| model | No | Model id the tokens are priced with, e.g. claude-opus-5-5 (must exist in list_model_prices) | |
| agent_h | No | Claude runtime (hours the agent works on its own) in HOURS: a number (2.5), a range string ('1.5-3'), [low, high] or {low, high}. | |
| classic_h | No | Optional comparison: effort without AI in HOURS: a number (2.5), a range string ('1.5-3'), [low, high] or {low, high}. | |
| rationale | No | Why the estimate looks like this (assumptions, risks) | |
| ticket_id | Yes | Ticket UUID | |
| group_label | No | Tickets with the same label are shown as ONE row in the batch view (e.g. '8–12'); the row sums its members | |
| is_optional | No | Optional ticket in a batch — excluded from the 'without optional' total | |
| human_work_h | No | Human work (decisions, review, manual test, deploy, customer alignment) in HOURS: a number (2.5), a range string ('1.5-3'), [low, high] or {low, high}. | |
| tokens_input | No | Expected input tokens (absolute count) | |
| tokens_output | No | Expected output tokens (absolute count) | |
| tokens_input_m | No | Same in millions of tokens (wins over tokens_input) | |
| cache_write_ttl | No | Which cache-write price applies (default 1h) | |
| tokens_output_m | No | Same in millions of tokens (wins over tokens_output) | |
| human_steering_h | No | Human time steering Claude (briefing, answering questions, checking intermediate results) in HOURS: a number (2.5), a range string ('1.5-3'), [low, high] or {low, high}. | |
| tokens_cache_read | No | Expected cache-read tokens (absolute count) | |
| tokens_cache_write | No | Expected cache-write tokens (absolute count) | |
| tokens_cache_read_m | No | Same in millions of tokens (wins over tokens_cache_read) | |
| tokens_cache_write_m | No | Same in millions of tokens (wins over tokens_cache_write) |