Prepare a quote
prepare_quoteUse 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
| Name | Required | Description | Default |
|---|---|---|---|
| tender_id | Yes | Id returned by `search_tenders`. | |
| quote_total | No | Total to quote, VAT included, in the tender's currency (also the amount the mandate must cover). Optional when `unit_prices` is given. | |
| supplier_id | No | 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. | |
| unit_prices | No | `[{"line": 1, "unit_price": 12500}, ...]` per requested line. | |
| company_name | No | 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. | |
| delivery_days | No | Delivery the supplier offers, in days. | |
| idempotency_key | No | 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. | |
| request_mandate | No | 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). | |
| preferred_language | No | The user's BCP-47 tag; the kit is written in it (English and Spanish today). | en-US |
| prices_include_vat | No | Whether `unit_prices` include VAT (Chile: IVA 19%). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||