Skip to main content
Glama

Fiveable for AP Teachers

Update student

update_student
DestructiveIdempotent

Fixes a student's name on a class roster (the old name is kept as an alias so past work still matches), or sets the email used for assignment notifications. Students with Fiveable accounts can be renamed but their email comes from their account.

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": {
      "classId": "<classId>",
      "handle": "<handle>"
    },
    "name": "update_student"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoFull name as the teacher wants it shown.
emailNo
handleYesStudent handle from get_class, e.g. S-4f2a1c.
classIdYesClass id from list_classes.

Output Schema

NameRequiredDescriptionDefault
textNoReadable tool result text for clients that consume structured output.
statusYesOperation status: completed, pending, partial, failed, unavailable, or a domain-specific outcome.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / email / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds genuinely non-obvious context that the old name is retained as an alias so past work still matches, which reframes how risky the 'destructive' rename actually is. The Fiveable-account constraint on email is also behavior the annotations do not carry. It doesn't cover permissions, reversibility of the alias, or error behavior.

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?

Two sentences, no filler, with the primary rename behavior front-loaded. The nested parenthetical about aliases makes the first sentence slightly harder to parse than necessary, but nothing is redundant.

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 present, return values needn't be explained, and the mutation's key behavioral traits are covered. The missing piece is the optionality relationship between name and email — with only classId and handle required, an agent can't infer from the description whether calling with neither field is a valid no-op or an error.

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 75% (name, handle, classId described; email undocumented in the schema), and the description compensates by explaining what the email parameter actually controls ('used for assignment notifications') and when it is ignored. It does not clarify that name and email are both optional and that at least one should be provided, which is the main remaining semantic gap.

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?

The description names a specific verb+resource ('Fixes a student's name on a class roster' / 'sets the email used for assignment notifications'), which is clearly distinct from the sibling write tools add_students, remove_students, and restore_students. An agent can tell exactly what surface area this tool touches 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?

It names the two supported operations (rename vs. set notification email) and gives an explicit exclusion: students with Fiveable accounts can be renamed but their email comes from the account, so the email path is a no-op for them. It stops short of naming an alternative tool to use when the email cannot be set here, and doesn't say what to do when neither field is supplied.

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.