Skip to content

Quote programs: request, send, supersede

The Quote Verbs request, send, supersede as MCP do programs, with inputs, result, refusals and an example.

Reference for Quote, one group of Quote programs.

Quote.request

Request asks a Startup for terms on one or more Offers, with the volume, term or scope wanted. Verb page.

Text
do: return await $.Quote.request(input)

Emits Quote.requested.

Inputs

InputTypeRequiredDescription
offerslist of OfferrequiredThe Offers wanted.
dealDealThe open Deal the terms are for; without one, a new Deal opens.
volumeintegerUnits wanted, such as seats or calls a month.
termstringContract length wanted, such as 12 months.
briefjsonA Service buyer’s scope, sizes and due dates, such as 82,000 words in three weeks.

Returns

OutputTypeRequiredDescription
dealDealrequiredThe Deal, waiting on a Quote.
quoteQuoterequiredThe Quote requested, in draft.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.
An Offer that is not open to the requesting party, such as one behind a WaitlistrefusedClear what the check names, then call it again.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Quote.request({ offers: ['offer_2hzYe1ERo0'] })"
  }
}

Quote.send

Send presents a drafted Quote to its buyer and freezes its lines, total and payment terms. Verb page.

Text
do: return await $.Quote.send(input)

Emits Quote.sent.

Inputs

InputTypeRequiredDescription
quoteQuoterequiredThe draft Quote.

Returns

OutputTypeRequiredDescription
quoteQuoterequiredThe sent Quote.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Quote.send({ quote: 'qt_GZnH5OK100' })"
  }
}

Quote.supersede

Supersede replaces a sent Quote with a newer one on the same Deal; only the newest Quote can be accepted. Verb page.

Text
do: return await $.Quote.supersede(input)

Emits Quote.superseded.

Inputs

InputTypeRequiredDescription
quoteQuoterequiredThe Quote being replaced.
byQuoterequiredThe newer Quote that replaces it.

Returns

OutputTypeRequiredDescription
quoteQuoterequiredThe superseded Quote, kept on record.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Quote.supersede({ quote: 'qt_GZnH5OK100', by: 'qt_GZnH5OK100' })"
  }
}