Generate practice questions from a passage
generate_itemsGenerate new practice items from a passage the learner supplies — their own reading, or the material they got wrong.
This is the PAID tier and it costs real money per call, unlike the curated bank. Prefer draw_items unless the learner specifically needs questions from their own material.
model is a priced choice: "economy" at $0.002 per item (Fast and cheap. Good enough for straightforward vocabulary in clear prose.); "standard" at $0.008 per item (Better at writing distractors that are genuinely tempting, which is the hard part of a good practice item.). Pick economy for straightforward prose and standard when the distractors need to be genuinely tempting, which is the hard part of a good question.
Limits: passage 200 characters minimum, and count at most 5 per call. Generation is capped at 10 calls per caller per day, separately from the free quota.
Generated items are NOT reviewed by a person. Every response carries a caveat saying so. Check the answer and the distractor reasons before giving them to a learner — a generated question with two defensible answers is worse than no question.
Returns 503 when generation is not enabled on the deployment; fall back to draw_items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many items, 1-5. Default 3. | |
| model | No | Priced choice. "economy" is cheaper; "standard" writes more tempting distractors. Default economy. | |
| source | Yes | A passage of at least 200 characters. The learner's own reading. | |
| difficulty | No | Target difficulty. |