Waitlist programs: admit, join
The Waitlist Verbs admit, join as MCP do programs, with inputs, result, refusals and an example.
Reference for Waitlist, one group of Waitlist programs.
Waitlist.admit
Admit releases Leads from a Waitlist to the Offer they waited for, in the order the Waitlist ranks them. Verb page.
do: return await $.Waitlist.admit(input)Emits Waitlist.admitted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
waitlist | Waitlist | required | The Waitlist. |
count | integer | required | How many Leads to admit. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
leads | list of Lead | required | The admitted Leads. |
waitlist | Waitlist | required | The Waitlist after the admitted Leads left it. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
| The record is not in a state that allows this Verb, so the call is refused. | refused | Read the record, run the Verb that moves it to an allowed state, then retry. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Waitlist.admit({ waitlist: 'waitlist_rBixb72HGB', count: 1 })"
}
}Waitlist.join
Join adds a Lead to a Waitlist for an Offer that is not open to them. Verb page.
do: return await $.Waitlist.join(input)Emits Waitlist.joined.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
waitlist | Waitlist | required | The Waitlist to join. |
email | email | required | Where to reach the Lead. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
lead | Lead | required | The waiting Lead. |
waitlist | Waitlist | required | The Waitlist joined. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The input does not match the schema of the operation. | invalid-input | Read the schema of the operation, then send every required field with the right type. | None. |
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Waitlist.join({ waitlist: 'waitlist_rBixb72HGB', email: 'dana@leaseline.app' })"
}
}