Skip to main content
Glama

Change classes and homework

change_study
Idempotent

Change the user's timetable and homework in DayHeart. add_class adds a class once, every week or every other week until a date. add_homework adds homework on a new line of a class's homework (the same text is not added twice). set_homework replaces it with a short line (what and for when) and optional details; clear_homework removes it. close_subject marks a subject closed with its result; reopen_subject opens it again. add_material attaches a link to a class (class_id) or to the whole subject (subject): DayHeart keeps links, not files, so put the file on the user's cloud drive first and attach its link; remove_material removes one (material_id or url). In a shared group timetable the whole group sees classes, homework and materials; a closed subject is the user's own mark.

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": {
      "action": "<action>"
    },
    "name": "change_study"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoHH:MM, 24-hour: end of a new class
urlNoFor add_material: https link to the file or page (for example a Google Drive file). In a shared place of study the whole group opens it, so the file must be viewable by anyone with the link; the answer says access "closed" if it is not. For remove_material: the link to remove
dateNoYYYY-MM-DD: the (first) day of a new class, or the day of the class the homework is for
kindNoKind of class: lecture, practice, lab or seminar
linkNoLink to an online class
roomNoRoom or building, as the user writes it
textNoHomework: the text to add (up to 1000 characters), or for set_homework the short line, what and for when (up to 300)
gradeNoFor close_subject with a grade: the grade as the user says it, up to 12 characters
placeNoPlace of study (group) name; needed only when the user has several
startNoHH:MM, 24-hour: start of a new class
titleNoFor add_material: name to show, up to 120 characters, e.g. "Lecture 3.docx"
untilNoYYYY-MM-DD: last day for weekly or biweekly; at most 90 classes
actionYesWhat to do
folderNoFor add_material: folder inside the subject's materials, e.g. "Tests" (empty: no folder); for a link that is already there, moves it
repeatNoonce (default), weekly or biweekly, for a new class
resultNoFor close_subject: passed as a credit, with a grade, or without a result
detailsNoFor set_homework: everything else about the homework, up to 4000 characters
subjectNoSubject as in the timetable, e.g. "Anatomy (Pr)": the class to add, the class for homework when there is no class_id, the subject to close or reopen, or the subject a material belongs to
teacherNoTeacher's name
class_idNoid of the class, for homework or a material of this class
material_idNoFor remove_material: id of the material, as listed with the class or subject

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"For add_material: https link to the file or page (for example a Google Drive file); for remove_material: the link to remove"New value: +"For add_material: https link to the file or page (for example a Google Drive file). In a shared place of study the whole group opens it, so the file must be viewable by anyone with the link; the answer says access \"closed\" if it is not. For remove_material: the link to remove"
  2. Changed1 schema field changed
    • addedInput schema / properties / folder
      Added value: +{
      +  "description": "For add_material: folder inside the subject's materials, e.g. \"Tests\" (empty: no folder); for a link that is already there, moves it",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that add_homework will not duplicate identical text, that set_homework replaces rather than appends, that DayHeart stores links not files (so the file must live on the user's cloud drive first), and that the response reports access "closed" when a link is not publicly viewable. It also explains the sharing model — the group sees classes, homework and materials, while a closed subject is the caller's private mark — which the annotations cannot convey.

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?

Purpose is front-loaded and every sentence maps to a distinct action, so nothing is padding. It is a dense, semicolon-chained paragraph that takes effort to scan for one specific action, which keeps it short of a 5.

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?

For a 21-parameter, eight-action dispatcher with no output schema, the description covers each action, the recurring-class model, the link-only storage constraint and the group-sharing semantics. Only minor gaps remain, such as general failure behavior beyond the link-access case.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning on the ambiguous parameters: class_id versus subject for attaching a material or homework, and material_id versus url for removal. It leaves the remaining 17 parameters to the schema, which is a reasonable division of labor.

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?

Opens with a specific verb and resource ("Change the user's timetable and homework in DayHeart") and then enumerates all eight sub-actions with what each does (add_class, add_homework, set_homework, clear_homework, close_subject, reopen_subject, add_material, remove_material). An agent can tell this apart from the read-oriented siblings like get_classes and from change_tasks without opening the schema.

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?

Per-action conditions are spelled out, e.g. add_class's three repeat modes and the until date, and add_material's class_id vs subject targeting. What is missing is any routing guidance against alternatives (when to call get_classes first, or why use this rather than change_tasks), so it is clear context without exclusions.

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