Skip to main content
Glama

Set ticket estimate

set_ticket_estimate
Idempotent

Create 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

NameRequiredDescriptionDefault
tagsNoNamed selections for subtotals/filters, e.g. a round 'RE ab 06.10.26' or 'Quick Wins'
modelNoModel id the tokens are priced with, e.g. claude-opus-5-5 (must exist in list_model_prices)
agent_hNoClaude 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_hNoOptional comparison: effort without AI in HOURS: a number (2.5), a range string ('1.5-3'), [low, high] or {low, high}.
rationaleNoWhy the estimate looks like this (assumptions, risks)
ticket_idYesTicket UUID
group_labelNoTickets with the same label are shown as ONE row in the batch view (e.g. '8–12'); the row sums its members
is_optionalNoOptional ticket in a batch — excluded from the 'without optional' total
human_work_hNoHuman 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_inputNoExpected input tokens (absolute count)
tokens_outputNoExpected output tokens (absolute count)
tokens_input_mNoSame in millions of tokens (wins over tokens_input)
cache_write_ttlNoWhich cache-write price applies (default 1h)
tokens_output_mNoSame in millions of tokens (wins over tokens_output)
human_steering_hNoHuman 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_readNoExpected cache-read tokens (absolute count)
tokens_cache_writeNoExpected cache-write tokens (absolute count)
tokens_cache_read_mNoSame in millions of tokens (wins over tokens_cache_read)
tokens_cache_write_mNoSame in millions of tokens (wins over tokens_cache_write)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses a lot of non-obvious behavior: token cost is computed server-side from list_model_prices and frozen, human cost uses the project hourly rate with a customer-default fallback, fx is frozen at the stored rate, and saving after send/approve/reject forks a new version while the old becomes 'superseded'. It also states that partial updates leave other fields untouched, which is real behavioral information rather than restatement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the four-part model are front-loaded, followed by the cost derivation, then versioning, then the constraint and next step — a sensible order. Some sentences are long and dense with parenthetical references (list_model_prices, fx_rates), but essentially every clause carries information the agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter mutation with no output schema, the description covers the price pipeline, derivation formulas, versioning and permissions, which is most of what an agent needs. It stops short of saying what a successful save returns (draft vs new version id) or what happens when the model is missing from the price table, which matters for a write tool with no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage the baseline is 3, but the description adds genuine meaning beyond the schema by explaining the derivation of fields that are not parameters at all (token cost, human_cost_low/high, ai_cost, total_cost_low/high) and that the token counts describe the midpoint of the Claude range. It does not explain the precedence or interaction of the *_m vs absolute token pairs, which the schema covers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource ('Create or update a ticket's effort estimate') and immediately defines the structure (four parts, each a low–high range) plus each part's meaning. An agent can distinguish this from set_project_estimate_gate or list/preview_ticket_estimates without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the access constraint ('Internal staff only') and the follow-up action ('Next step: send_ticket_estimates'), and clarifies draft-vs-post-send semantics. It does not point at daggers like preview_ticket_estimates for a dry run or list_ticket_estimates for reading, so the alternative-routing is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources