Skip to main content
Glama

Prepare a quote

prepare_quote

Use this when your user decided to quote: it builds the kit their person needs to submit, ready for one last click in Mercado Público (Andes cannot submit it). Pass tender_id and the prices: unit_prices per line ([{"line": 1, "unit_price": 12500}], net unless prices_include_vat) or quote_total (VAT included); optionally delivery_days and supplier_id (the supplier company's RUT as registered in Mercado Público, public in award data). Returns the requested lines with the draft (net, IVA 19%, total), readiness checks with their evidence (open, registered supplier, within the buyer's budget, quotes received and their range, delivery, documents to attach), the deadline and the link to submit. It never invents prices: unpriced lines stay unpriced. Any identified agent can call it. If the person you act for approved an AndesPass mandate for procurement.quote.prepare with a ceiling covering the total, the kit says it was prepared under that mandate and the call leaves a signed receipt and AndesPass emails the kit to the person who approved the mandate; without one it is a draft for your person to review and nothing is sent. When your person wants it prepared on their behalf (for example, for their company) and no mandate covers it yet, call with request_mandate=true (add company_name with supplier_id, the company RUT, so the mandate names the company): the answer is mandate_required with an approval_url and an ask_user sentence; once they approve, call again with the same arguments. Access: needs an identified agent key (free, self-service at https://pass.andesprotocol.com).

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": {
      "tender_id": "<tender_id>"
    },
    "name": "prepare_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
tender_idYesId returned by `search_tenders`.
quote_totalNoTotal to quote, VAT included, in the tender's currency (also the amount the mandate must cover). Optional when `unit_prices` is given.
supplier_idNoThe supplier company's RUT as registered in Mercado Público (public in award data; never a personal ID document), to check its supplier record.
unit_pricesNo`[{"line": 1, "unit_price": 12500}, ...]` per requested line.
company_nameNoThe company the quote is for; with `supplier_id` (its RUT) and `request_mandate`, the mandate names it and only a mandate for that company covers the quote.
delivery_daysNoDelivery the supplier offers, in days.
idempotency_keyNoOptional, up to 200 characters. When the kit is emailed under a mandate, a retry with the same key within 24 hours does not email it again (`mandate.delivery.status` is `already_sent`). Use one key per quote you mean to send.
request_mandateNoTrue when the person wants the kit prepared on their behalf: without a mandate covering the total, the server answers `mandate_required` with an approval link instead of the kit; with one, the kit is also emailed to that person (through AndesPass).
preferred_languageNoThe user's BCP-47 tag; the kit is written in it (English and Spanish today).en-US
prices_include_vatNoWhether `unit_prices` include VAT (Chile: IVA 19%).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional, up to 200 characters. When the kit is emailed under a mandate, a retry with the same key within 24 hours does not email it again (`mandate.delivery.status` is `already_sent`). Use one key per quote you mean to send.",
      +  "title": "Idempotency Key"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / supplier_id / description
      Previous value: -"The user's tax id (Chilean RUT), to check its supplier record."New value: +"The supplier company's RUT as registered in Mercado Público (public in award data; never a personal ID document), to check its supplier record."
  3. Changed1 schema field changed
    • addedInput schema / properties / company_name
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The company the quote is for; with `supplier_id` (its RUT) and `request_mandate`, the mandate names it and only a mandate for that company covers the quote.",
      +  "title": "Company Name"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / request_mandate
      Added value: +{
      +  "default": false,
      +  "description": "True when the person wants the kit prepared on their behalf: without a mandate covering the total, the server answers `mandate_required` with an approval link instead of the kit; with one, the kit is also emailed to that person (through AndesPass).",
      +  "title": "Request Mandate",
      +  "type": "boolean"
      +}
  5. Changed7 schema fields changed
    • addedInput schema / properties / delivery_days / description
      Added value: +"Delivery the supplier offers, in days."
    • addedInput schema / properties / preferred_language / description
      Added value: +"The user's BCP-47 tag; the kit is written in it (English and Spanish today)."
    • addedInput schema / properties / prices_include_vat / description
      Added value: +"Whether `unit_prices` include VAT (Chile: IVA 19%)."
    • addedInput schema / properties / quote_total / description
      Added value: +"Total to quote, VAT included, in the tender's currency (also the amount the mandate must cover). Optional when `unit_prices` is given."
    • addedInput schema / properties / supplier_id / description
      Added value: +"The user's tax id (Chilean RUT), to check its supplier record."
    • addedInput schema / properties / tender_id / description
      Added value: +"Id returned by `search_tenders`."
    • addedInput schema / properties / unit_prices / description
      Added value: +"`[{\"line\": 1, \"unit_price\": 12500}, ...]` per requested line."
  6. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true, but the description discloses what actually happens: unpriced lines stay unpriced, without a mandate the output is a review draft and "nothing is sent", with a mandate a signed receipt is left and AndesPass emails the kit, and an idempotency_key suppresses duplicate emails within 24 hours. It also states the auth requirement (identified agent key) and where to get it, none of which annotations convey.

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 trigger and the core behavior, and nearly every sentence carries distinct operational information. It loses a point for being one dense run-on paragraph with a redundant duplication of the access requirement ("Any identified agent can call it" and then again at the end) that hurts scannability.

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?

Despite an output schema existing, the description sketches what comes back (requested lines with net/IVA/total draft, readiness checks with evidence, deadline, submit link), which helps the agent confirm success. Combined with the mandate flow, idempotency semantics, and access requirements, nothing an agent needs in order to call it correctly is missing.

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?

Schema coverage is 100%, so individual parameters are already documented and the baseline is 3. The description adds cross-parameter meaning the schema cannot: unit_prices vs. quote_total as mutually exclusive pricing modes, that quote_total is what the mandate ceiling must cover, and that company_name is only meaningful paired with supplier_id and request_mandate.

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 artifact: it "builds the kit their person needs to submit" a quote, and explicitly bounds the outcome ("ready for one last click in Mercado Público (Andes cannot submit it)"). That scope statement distinguishes it cleanly from read-only siblings like get_tender_detail and search_tenders.

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 an explicit trigger ("when your user decided to quote"), a clear alternative path (draft mode with no mandate vs. mandate-covered send), and the exact retry procedure for request_mandate ("once they approve, call again with the same arguments"). It also states the when-not-otherwise condition — no mandate means nothing is sent.

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