Knowledge Graph, Mastery & Next-Topic Planner
mastery_pathingAdaptive-learning engine. From a curriculum's prerequisite map (topics + prerequisites) and learners' answers (learner, topic, question, correct, time) it returns: graph checks (loops with their path, undefined prerequisites, redundant links, levels, a valid teaching order); each learner's mastery of each topic (Bayesian Knowledge Tracing fitted per topic, standard settings at cold start; Elo rating for chance of a right answer and question difficulty); the knowledge frontier (topics ready to learn: not mastered, all prerequisites mastered, Knowledge Space Theory) with the next best topic and why; review-first when stuck; gaps blocking a goal and the path to it with time; shaky foundations; curriculum checks from data (topics that behave like two skills, practice with no learning gain, prerequisite links the data contradicts or suggests). Learners are never ranked. Decision cards first. Up to 5,000 answers; larger: mastery_pathing_get_engine.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mastery_pathing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | Target topic for gap diagnosis and the path to it. | |
| method | No | auto/bkt = knowledge tracing (fitted or standard); rating = Elo-only mastery. | auto |
| topics | No | Topics: topic_id, prerequisites ('A; B' or list), minutes, title. | |
| learners | No | Plan for these learner codes only (others still inform the topic settings). | |
| goal_only | No | Only recommend topics on the way to the goal. | |
| responses | No | One row per answer: learner_id (code), topic, question_id, correct (0/1), timestamp. | |
| model_check | No | ||
| prerequisites | No | Optional links instead of a prerequisites column: {from, to} or [from, to]. | |
| slip_guess_cap | No | ||
| stuck_attempts | No | ||
| max_split_tests | No | ||
| max_ready_listed | No | ||
| rating_mastery_p | No | ||
| split_bic_margin | No | ||
| topic_parameters | No | Stored topic settings from an earlier run: topic, start_known, learn_rate, slip, guess. | |
| mastery_threshold | No | ||
| min_answers_topic | No | ||
| min_learners_edge | No | ||
| min_learners_topic | No | ||
| edge_violation_rate | No | ||
| infer_prerequisites | No | ||
| max_learners_listed | No | ||
| max_suggested_links | No | ||
| rating_min_attempts | No | ||
| max_questions_listed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | No | ||
| alerts | No | ||
| status | Yes | 1 = ok, 0 = nothing could be planned | |
| topics | No | ||
| message | No | ||
| learners | No | ||
| metadata | Yes | ||
| decisions | Yes | Plain-language cards, priority order. Relay these first. | |
| assumptions | No | ||
| graph_check | No | ||
| model_check | No | ||
| data_quality_report | No | ||
| question_difficulty | No |