Skip to main content
Glama

Get Pupil

pupil_get
Read-onlyIdempotent

One pupil in one subject: every assessment across all years with its date, school year, grade and percentage; the change since their previous assessment; their target; each skill against their class; and every class they are or were on (from the class lists, so subjects with no marking yet appear too). Take pupil_id from pupil_list or results_get. A pupil with no marking the caller may see returns found: false. Read-only.

Input Schema

NameRequiredDescriptionDefault
scopeNo"department" (default) reads the pupil across everything the caller may see; "mine" only the caller's own marking.department
subjectNoWhich subject to read them in. Omit for the subject with the most marking.
pupil_idYesThe pupil's id, from pupil_list or results_get.
academic_year_idNoThe year their target is read for. Omit for the current year.

Output Schema

NameRequiredDescriptionDefault
foundYesFalse when there is no marked work for this pupil that the caller may see.
pupilYes
scopeYes
scope_noteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / pupil / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "assessments": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "grade": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "grade_exact": {
      -              "anyOf": [
      -                {
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "The grade with its fraction, cut (not rounded) to one decimal: 3.6 is a 3+. The change between assessments is read from these, so two papers can share a grade and a percentage and still differ by a few tenths when their boundaries differ."
      -            },
      -            "label": {
      -              "description": "The assessment as the dashboard names it.",
      -              "type": "string"
      -            },
      -            "paper_title": {
      -              "type": "string"
      -            },
      -            "percent": {
      -              "anyOf": [
      -                {
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "required": [
      -            "label",
      -            "paper_title",
      -            "percent",
      -            "grade",
      -            "grade_exact"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "change": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "class_code": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "dashboard_url": {
      -        "type": "string"
      -      },
      -      "grade_change": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "latest_grade": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "latest_percent": {
      -        "type": "number"
      -      },
      -      "name": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "other_subjects": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "percent_change": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "pupil_id": {
      -        "type": "string"
      -      },
      -      "skills": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "code": {
      -              "type": "string"
      -            },
      -            "group_percent": {
      -              "anyOf": [
      -                {
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Their class (or teacher's group) on the same skill, for comparison."
      -            },
      -            "pupil_percent": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "pupil_percent",
      -            "group_percent"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "subject": {
      -        "type": "string"
      -      },
      -      "subject_label": {
      -        "type": "string"
      -      },
      -      "target": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "teacher": {
      -        "type": "string"
      -      },
      -      "year_group": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "pupil_id",
      -      "name",
      -      "subject",
      -      "subject_label",
      -      "other_subjects",
      -      "class_code",
      -      "year_group",
      -      "teacher",
      -      "latest_grade",
      -      "latest_percent",
      -      "change",
      -      "grade_change",
      -      "percent_change",
      -      "target",
      -      "assessments",
      -      "skills",
      -      "dashboard_url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "assessments": {
      +        "description": "Every assessment in this subject that they or their group sat, across all years, in the order sat. percent null = they did not sit it.",
      +        "items": {
      +          "properties": {
      +            "academic_year": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "The school year it counts towards, e.g. \"2026/27\"; null for a paper filed under no assessment point."
      +            },
      +            "date": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "When it was sat (YYYY-MM-DD), where the paper is dated."
      +            },
      +            "grade": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "grade_exact": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "The grade with its fraction, cut (not rounded) to one decimal: 3.6 is a 3+. The change between assessments is read from these, so two papers can share a grade and a percentage and still differ by a few tenths when their boundaries differ."
      +            },
      +            "label": {
      +              "description": "The assessment as the dashboard names it.",
      +              "type": "string"
      +            },
      +            "paper_title": {
      +              "type": "string"
      +            },
      +            "percent": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "label",
      +            "paper_title",
      +            "percent",
      +            "grade",
      +            "grade_exact",
      +            "date",
      +            "academic_year"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "change": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "class_code": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "classes": {
      +        "description": "Every class they are or were on, newest year first, from the class lists rather than the marking — so a subject with no marking yet still appears. Only classes the caller may see: their department's for a head of department, every class for a school admin.",
      +        "items": {
      +          "properties": {
      +            "academic_year": {
      +              "type": "string"
      +            },
      +            "class_code": {
      +              "type": "string"
      +            },
      +            "class_id": {
      +              "type": "string"
      +            },
      +            "current": {
      +              "description": "On this class today.",
      +              "type": "boolean"
      +            },
      +            "subject": {
      +              "type": "string"
      +            },
      +            "subject_label": {
      +              "type": "string"
      +            },
      +            "teachers": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "year_group": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "class_id",
      +            "class_code",
      +            "subject",
      +            "subject_label",
      +            "year_group",
      +            "academic_year",
      +            "teachers",
      +            "current"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "dashboard_url": {
      +        "type": "string"
      +      },
      +      "grade_change": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "latest_grade": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "latest_percent": {
      +        "type": "number"
      +      },
      +      "name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "other_subjects": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "percent_change": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "pupil_id": {
      +        "type": "string"
      +      },
      +      "skills": {
      +        "items": {
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "group_percent": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Their class (or teacher's group) on the same skill, for comparison."
      +            },
      +            "pupil_percent": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "pupil_percent",
      +            "group_percent"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "subject": {
      +        "type": "string"
      +      },
      +      "subject_label": {
      +        "type": "string"
      +      },
      +      "target": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "teacher": {
      +        "type": "string"
      +      },
      +      "year_group": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "pupil_id",
      +      "name",
      +      "subject",
      +      "subject_label",
      +      "other_subjects",
      +      "class_code",
      +      "year_group",
      +      "teacher",
      +      "latest_grade",
      +      "latest_percent",
      +      "change",
      +      "grade_change",
      +      "percent_change",
      +      "target",
      +      "classes",
      +      "assessments",
      +      "skills",
      +      "dashboard_url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / pupil / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "assessments": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "grade": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "label": {
      -              "description": "The assessment as the dashboard names it.",
      -              "type": "string"
      -            },
      -            "paper_title": {
      -              "type": "string"
      -            },
      -            "percent": {
      -              "anyOf": [
      -                {
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "required": [
      -            "label",
      -            "paper_title",
      -            "percent",
      -            "grade"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "change": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "class_code": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "dashboard_url": {
      -        "type": "string"
      -      },
      -      "grade_change": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "latest_grade": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "latest_percent": {
      -        "type": "number"
      -      },
      -      "name": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "other_subjects": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "percent_change": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "pupil_id": {
      -        "type": "string"
      -      },
      -      "skills": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "code": {
      -              "type": "string"
      -            },
      -            "group_percent": {
      -              "anyOf": [
      -                {
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Their class (or teacher's group) on the same skill, for comparison."
      -            },
      -            "pupil_percent": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "pupil_percent",
      -            "group_percent"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "subject": {
      -        "type": "string"
      -      },
      -      "subject_label": {
      -        "type": "string"
      -      },
      -      "target": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "teacher": {
      -        "type": "string"
      -      },
      -      "year_group": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "pupil_id",
      -      "name",
      -      "subject",
      -      "subject_label",
      -      "other_subjects",
      -      "class_code",
      -      "year_group",
      -      "teacher",
      -      "latest_grade",
      -      "latest_percent",
      -      "change",
      -      "grade_change",
      -      "percent_change",
      -      "target",
      -      "assessments",
      -      "skills",
      -      "dashboard_url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "assessments": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "grade": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "grade_exact": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "The grade with its fraction, cut (not rounded) to one decimal: 3.6 is a 3+. The change between assessments is read from these, so two papers can share a grade and a percentage and still differ by a few tenths when their boundaries differ."
      +            },
      +            "label": {
      +              "description": "The assessment as the dashboard names it.",
      +              "type": "string"
      +            },
      +            "paper_title": {
      +              "type": "string"
      +            },
      +            "percent": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "label",
      +            "paper_title",
      +            "percent",
      +            "grade",
      +            "grade_exact"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "change": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "class_code": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "dashboard_url": {
      +        "type": "string"
      +      },
      +      "grade_change": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "latest_grade": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "latest_percent": {
      +        "type": "number"
      +      },
      +      "name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "other_subjects": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "percent_change": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "pupil_id": {
      +        "type": "string"
      +      },
      +      "skills": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "group_percent": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Their class (or teacher's group) on the same skill, for comparison."
      +            },
      +            "pupil_percent": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "pupil_percent",
      +            "group_percent"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "subject": {
      +        "type": "string"
      +      },
      +      "subject_label": {
      +        "type": "string"
      +      },
      +      "target": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "teacher": {
      +        "type": "string"
      +      },
      +      "year_group": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "pupil_id",
      +      "name",
      +      "subject",
      +      "subject_label",
      +      "other_subjects",
      +      "class_code",
      +      "year_group",
      +      "teacher",
      +      "latest_grade",
      +      "latest_percent",
      +      "change",
      +      "grade_change",
      +      "percent_change",
      +      "target",
      +      "assessments",
      +      "skills",
      +      "dashboard_url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Added

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint/idempotent/openWorld false, and the description sensibly restates 'Read-only.' It adds real behavioral value: 'A pupil with no marking the caller may see returns found: false,' and notes class data comes from class lists so unmarked subjects still appear. This edge-case and data-provenance disclosure goes beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the resource and its content; dense but every clause describes a distinct part of the return. The semicolon-chained enumeration is efficient if slightly heavy, with no filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema and full annotations, the description is complete enough: it covers scope of returned data, the found:false case, and where to source pupil_id. It slightly over-explains return fields already in the output schema, but nothing critical is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameters (scope, subject default-to-most-marking, academic_year_id, pupil_id) are fully documented in the schema. The description mostly echoes this and only adds the provenance of pupil_id, leaving baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (one pupil in one subject) and enumerates the returned artifacts: assessments across years with dates/grade/percentage, change since previous, target, skills vs class, and class enrollment history. An agent can clearly distinguish this from pupil_list (which enumerates pupils) and results_get.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent for the required parameter: 'Take pupil_id from pupil_list or results_get.' That gives a clear entry path, but there is no explicit when-to-use-it-vs-siblings or exclusion statement (beyond the found:false edge case).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources