Skip to main content
Glama

update_offer

DestructiveIdempotent

Change a quote. Required: offer_id. Optional: lines (replaces all of them; unit_price in MAIN units — 100 = 100,00 € — or unit_price_minor in cents; a line without vat_rate gets the recipient's default), title, recipient, address, intro, outro, valid_until, status, country, language, tax_note, currency. Totals are always recomputed from the lines — a total that disagrees with its own lines is never stored. A quote that has been sent refuses line changes unless force=true, because the customer is holding the old figures. The answer gives every amount in main units, *_minor in cents, and printed in the recipient's format.

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": {
      "offer_id": "<offer_id>"
    },
    "name": "update_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNotrue allows line changes on a quote that was already sent
introNoIntroductory text printed above the positions
linesNoNew positions; replaces all existing lines of the quote
outroNoClosing text printed below the positions
titleNoTitle of the offer
statusNoNew status
addressNoPostal address
countryNoCountry (ISO code or name)
currencyNoCurrency code (ISO 4217, e.g. EUR)
languageNoLanguage code (e.g. de, en)
offer_idYesID of the offer to change
tax_noteNoTax note printed on the quote (e.g. reverse charge text)
recipientNoRecipient name on the quote
valid_untilNoDate until which the quote is valid (YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • addedInput schema / properties / address / description
      Added value: +"Postal address"
    • addedInput schema / properties / country / description
      Added value: +"Country (ISO code or name)"
    • addedInput schema / properties / currency / description
      Added value: +"Currency code (ISO 4217, e.g. EUR)"
    • addedInput schema / properties / force / description
      Added value: +"true allows line changes on a quote that was already sent"
    • addedInput schema / properties / intro / description
      Added value: +"Introductory text printed above the positions"
    • addedInput schema / properties / language / description
      Added value: +"Language code (e.g. de, en)"
    • addedInput schema / properties / lines / description
      Added value: +"New positions; replaces all existing lines of the quote"
    • addedInput schema / properties / offer_id / description
      Added value: +"ID of the offer to change"
    • addedInput schema / properties / outro / description
      Added value: +"Closing text printed below the positions"
    • addedInput schema / properties / recipient / description
      Added value: +"Recipient name on the quote"
    • addedInput schema / properties / status / description
      Added value: +"New status"
    • addedInput schema / properties / tax_note / description
      Added value: +"Tax note printed on the quote (e.g. reverse charge text)"
    • addedInput schema / properties / title / description
      Added value: +"Title of the offer"
    • addedInput schema / properties / valid_until / description
      Added value: +"Date until which the quote is valid (YYYY-MM-DD)"
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the destructive/idempotent hints, the description discloses non-obvious behavior: totals are always recomputed and an inconsistent total is never stored, sent quotes reject line changes unless forced, lines are wholesale replaced rather than merged, and lines lacking a vat_rate inherit the recipient's default. It also describes the response units (main units, *_minor in cents, recipient-formatted printing), which the annotation set does not cover.

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 with the verb and the required parameter, then the optional fields, then the behavioral rules — a sensible ordering with no wasted preamble. The long run-on enumeration of optional fields is dense but each item corresponds to a real parameter, so little could be cut without losing information.

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

Completeness5/5

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

For a 14-parameter mutation tool with no output schema, the description covers required vs optional inputs, unit conventions, defaulting rules, the guard on sent quotes, and the shape of the returned amounts. An agent has everything needed to call it correctly and interpret the result.

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: `lines` replaces rather than appends, unit_price is in MAIN units while unit_price_minor is in cents, and a missing vat_rate falls back to the recipient default — none of which the schema's item object spells out. The remaining fields are only listed by name, duplicating what their schema descriptions already say.

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

Purpose4/5

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

"Change a quote" gives a clear verb and resource, and the following sentence enumerates exactly which fields are mutable, so the agent knows the scope of the mutation without opening the schema. It stops short of distinguishing itself from adjacent quote-related siblings (e.g. update_abaninja_quote, draft_offer), leaving a small ambiguity about which tool owns this record type.

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?

The description states the required parameter up front, explains that `lines` replaces all existing lines, and gives a concrete condition plus remedy for the sent-quote case ("refuses line changes unless force=true, because the customer is holding the old figures"). That is actionable when-to-use guidance, though it never explicitly points to a read tool for the non-mutating case.

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.