Skip to main content
Glama

calculate_grades

Recalculates one student's section and final grades in Clickedu's Avaluar page and saves them after an explicit preview and confirmation, leaving the teacher's hand-picked final grade unchanged.

Instructions

Recalculate ONE student's section and final grades in the 'Avaluar' page (the per-student 'calcular' button) and save the result (Guardar). Clickedu computes the values from the grades already entered and the weights; this tool only stores what Clickedu computed. Single student only.

Without confirm=True it returns a PREVIEW of the computed values next to the stored ones and saves nothing; call again with confirm=True only after the teacher approves. The final grade the teacher chose by hand (the final select) is left as it is; only the calculated value next to it changes.

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": {
      "subject_id": "<subject_id>",
      "alu_id": "<alu_id>"
    },
    "name": "calculate_grades"
  }
}

Input Schema

NameRequiredDescriptionDefault
alu_idYes
confirmNo
term_idNo
subject_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that Clickedu computes the values and the tool merely stores them, that the default path is a non-destructive preview, and that the teacher's hand-chosen final select is preserved while only the calculated value changes. It omits permissions/authorization requirements and failure behavior, which keeps it short of a 5.

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-loads the action and its single-student constraint, then the confirm workflow in a second short paragraph. Dense but every sentence adds information; only the parenthetical UI references feel slightly 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?

For a two-step mutation with an output schema (so return values need no explanation), the description covers the safety-critical behavior well. The remaining gap is the undocumented term_id and any note on what happens when grades are incomplete.

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 description coverage is 0% across four parameters, so the description must compensate. It explains confirm clearly (preview vs save) and implies alu_id (one student) and subject_id (section), but term_id is never mentioned and alu_id/subject_id formats are unstated.

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?

Names a specific verb and resource ('Recalculate ONE student's section and final grades'), pins the exact UI location ('the per-student calcular button'), and states the scope limit ('Single student only'). An agent can distinguish this from set_grade, which assigns a value rather than deriving one.

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

Usage Guidelines5/5

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

Gives explicit when-to-use and when-not-to-use rules: without confirm=True it previews and saves nothing, and confirm=True should be used only after the teacher approves. The two-step flow and its gating condition are unambiguous.

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