Skip to main content
Glama

draft_offer

Destructive

Start a quote. Required: exactly one of lead_id, account_id or contact_id. Recipient and address are filled from that record; the price list's standard lines are proposed with quantity 1 for a human to correct. Optional: title, valid_days (default 30), currency (default: CHF for a Swiss recipient, else EUR), country (ISO code; default from the record, else the seller's), language (de|en), tax_note, address, intro, asbest_project_id, and lines to give the positions outright: [{name, description?, unit?, quantity, unit_price, vat_rate?, discount_percent?}]. unit_price is in MAIN units of the currency — 100 means 100,00 €, NOT 1,00 € — or give unit_price_minor in cents. A line without vat_rate gets the recipient's default: 19 % for a German recipient of a German seller, 8.1 % in Switzerland, 0 % with reverse charge (EU business with VAT id) or for export. Numbers, date and tax text follow the recipient's country. Nothing is sent, and no prices are invented — an empty price list produces a quote with no positions and says so.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "draft_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
introNoIntroductory text printed above the positions
linesNoQuote positions: name, quantity, unit_price (main units) and optional fields
titleNoTitle of the offer
addressNoPostal address
countryNoISO code of the recipient's country, e.g. DE, AT, CH.
lead_idNoID of the lead
currencyNoCurrency code (ISO 4217, e.g. EUR)
languageNode or en. Default from the country.
tax_noteNoOverrides the derived tax note (reverse charge, export).
account_idNoID of the account (company)
contact_idNoID of the contact
valid_daysNoDays the quote stays valid; default 30
asbest_project_idNoID of the asbest project

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / address / description
      Added value: +"Postal address"
    • addedInput schema / properties / asbest_project_id / description
      Added value: +"ID of the asbest project"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / currency / description
      Added value: +"Currency code (ISO 4217, e.g. EUR)"
    • addedInput schema / properties / intro / description
      Added value: +"Introductory text printed above the positions"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
    • addedInput schema / properties / lines / description
      Added value: +"Quote positions: name, quantity, unit_price (main units) and optional fields"
    • addedInput schema / properties / title / description
      Added value: +"Title of the offer"
    • addedInput schema / properties / valid_days / description
      Added value: +"Days the quote stays valid; default 30"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=true, so the safety profile is covered. The description adds genuinely useful behavior the annotations cannot convey: nothing is sent, recipient/address/currency/country/language/tax are derived from the referenced record with documented fallbacks, and an empty price list yields a quote with zero positions rather than invented prices. It does not address the non-idempotent/destructive implication of creating a persistent record.

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 hard constraint, then defaults, then line-item details, then caveats. The dense run-on paragraph with nested parentheses and an inline object literal is information-rich but requires careful parsing; a short bulleted default table would read faster.

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 13-parameter mutation tool with no output schema and no annotations about return values, the description covers preconditions, defaults, derivation rules and the empty-price-list edge case thoroughly. The notable gap is that it never says what comes back (a draft/offer ID) or how the created quote is subsequently sent or edited.

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

Parameters5/5

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

Schema coverage is already 100%, yet the description still adds substantial meaning: the exactly-one-of constraint among the three ID parameters, the currency default rule (CHF for Swiss recipients, otherwise EUR), the country default chain, language values and defaults, valid_days default of 30, and the critical distinction that unit_price is in main units while unit_price_minor is in cents. It also documents the per-line VAT default by recipient/seller country and reverse-charge/export cases, which the schema does not.

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?

"Start a quote" gives a specific verb and resource, and the body clarifies that it creates a draft offer with positions, not a sent document. It does not explicitly differentiate itself from siblings such as draft_invoice or update_offer, so an agent must infer from the noun 'quote' that this is the offer-creation path.

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

Usage Guidelines3/5

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

The description establishes a hard precondition (exactly one of lead_id, account_id or contact_id) and states the outcome is a draft, which implicitly tells the agent when to use it. It never names an alternative tool or states when NOT to use this one (e.g. use update_offer to modify an existing quote, draft_invoice for invoices).

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.