Skip to main content
Glama

Zestli

Refresh Quote

refresh_quote

Use this when a quote's 15-minute window expired (QUOTE_EXPIRED) or prices may have moved: re-prices the same items live and issues a fresh expiry for the SAME quote_id, returning the re-priced line_items (departure times, options, amounts) as create_quote does. Prefer this over re-running search + create_quote for identical items. State amounts using the *_display fields.

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": {
      "request": "<request>"
    },
    "name": "refresh_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesInput for refreshing an expired or stale quote.

Output Schema

NameRequiredDescriptionDefault
messageNo
currencyNo
quote_idYes
subtotalNo
fee_totalNo
tax_totalNo
error_codeNo
expires_atNo
is_sandboxNo
line_itemsNo
grand_totalNo
subtotal_displayNo
fee_total_displayNo
tax_total_displayNo
merchant_tax_totalNo
operator_tax_totalNo
grand_total_displayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations it discloses the 15-minute expiry model, the QUOTE_EXPIRED error code that motivates the call, that the quote_id is preserved rather than a new quote being minted, and the *_display formatting rule. It does not say whether concurrent refreshes race or whether the old expiry is invalidated on failure, but the behavioral core is well covered for a non-read-only, non-idempotent tool.

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?

Front-loaded trigger condition followed by behavior, alternative, and a formatting directive, with no filler sentences. The final clause about *_display fields is slightly tangential but earns its place by preventing raw-amount misuse.

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?

Since an output schema exists, return shape need not be spelled out, and the description still signals parity with create_quote's line_items. Trigger, scope, alternative, and amount formatting are all present; only edge cases like refresh failure or quote ownership/permission requirements are unaddressed.

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

Parameters3/5

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

Schema coverage is 100% and the single quote_id parameter is already described as "Existing quote UUID to refresh." The description only reinforces identity preservation ("the SAME quote_id"), so the baseline 3 applies; the rest of its detail concerns output, not input semantics.

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?

States a specific verb and resource ("re-prices the same items live", "fresh expiry for the SAME quote_id") and explicitly anchors parity with create_quote's line_items output. An agent can distinguish it from create_quote and search_supply without opening either schema.

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

Usage Guidelines5/5

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

Gives both trigger conditions (QUOTE_EXPIRED after a 15-minute window, or prices may have moved) and names the alternative it supersedes: "Prefer this over re-running search + create_quote for identical items." This is explicit when-to-use plus an explicit exclusion.

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