Grade and next prompt
gradeAndNextWrite. recordReview, then the next due prompt. Requires cardId, rating, reviewedAt optional, and a new idempotencyKey. Schedule from dueAt. Prompts only. Includes deckNote and cardNote (null when unset). Coaching notes are instructions for how an agent should quiz and coach. They are not the answer, not graded content, and not the quiz prompt. A deck note applies to every card in that deck. A card note is optional and additive with the deck note. Retrieve responses (listDue, upcoming-new, inventory, getCard, reveal, and agent session start/next/grade) include deckNote and cardNote so one call carries coaching context. Scripture / dictation: The learner needs every word remembered correctly, but often answers via dictation where punctuation gets messy. They set a deck note instructing the agent to check every word exactly, but not fail on punctuation differences, and to include that reason when coaching. This is only an example — notes can be any coaching preference for how agents should quiz/coach for that deck (or a specific card).
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": {
"cardId": "<cardId>",
"rating": "<rating>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "gradeAndNext"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | Queue instant. Omit to use now. | |
| limit | No | Page size, not the daily new-card cap. | |
| cardId | Yes | ||
| deckId | No | Optional deck filter. | |
| rating | Yes | ||
| extraNew | No | Required when newCardMode is extra. | |
| reviewedAt | No | UTC ISO-8601 timestamp ending in Z | |
| newCardMode | No | ||
| idempotencyKey | Yes |