Get the current quiz question
get_quiz_questionReturns the current question of a quiz module of the customer: the text, the options with their ids, the format of the answer, the saved answer, and the progress. Ask the customer the question, then call answer_quiz_question. The result can include notes: the text of the information screens before the question. Give the notes to the customer. This tool saves no answer, but it moves the quiz past the information screens. A result with status allocation gives items that the customer picks one by one with set_allocation. A result with status in_app is a question that the customer answers in the app, at app_url. A result with status complete means that the module is finished. For the eligibility quiz, give the customer next_step and app_url of a result with status complete or ineligible.
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": {
"module_slug": "<module_slug>"
},
"name": "get_quiz_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | No | The product line. Send it for the eligibility questions, and when the customer has more than one paid agreement. | |
| module_slug | Yes | The slug of the quiz module, for example basic-information or financial-philosophy. Use eligibility, with product, for the eligibility questions before payment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| kind | No | ||
| pets | No | ||
| items | No | The items of an allocation question. picked is false until the customer picks. | |
| notes | No | ||
| title | No | ||
| status | Yes | ||
| app_url | Yes | ||
| options | No | ||
| progress | No | ||
| subtitle | No | ||
| next_step | No | ||
| field_label | No | ||
| module_slug | Yes | ||
| question_id | No | ||
| module_state | No | The state of the module for a write of the customer. open: a write saves. edit_restarts_alignment: a write saves, restarts the alignment of the couple, and can email the partner. Tell the customer this and get a yes before the write. closed: the tools refuse a write. Do not collect values. Give the customer next_step_url. | |
| saved_answer | No | ||
| answer_format | No | ||
| next_step_url | No | Only for a closed module: the app page that shows the next step. | |
| allocation_kind | No | ||
| educational_copy | No | ||
| waiting_for_partner | No |