Skip to main content
Glama

set_grade

Writes one student's grade for a single subject, term, and evaluation item in Clickedu's Avaluar page, returning a preview first and saving only after explicit confirmation.

Instructions

Set ONE grade for ONE student in the 'Avaluar' page of one subject and term: one activity or section (item = its item_id or code, as get_evaluation lists them, or "final" for the final grade). grade "" clears it. Single action only, like typing in one cell and pressing Guardar (not "Guardar i tancar"); every other grade is posted back unchanged.

Without confirm=True it returns a PREVIEW and changes nothing; call again with confirm=True only after the teacher approves. Clickedu does not recalculate section or final grades on save; that is the page's 'calcular' button, which this tool does not press. If the page was saved elsewhere after this read, the write stops instead of overwriting.

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>",
      "item": "<item>",
      "grade": "<grade>"
    },
    "name": "set_grade"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYes
gradeYes
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.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the preview/write split, that unmentioned grades are posted back unchanged (no silent clobbering), that section/final grades are not recalculated, that grade "" clears a value, and that a stale read aborts the write rather than overwriting. These are exactly the side-effect and concurrency traits an agent cannot infer from the schema.

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 core action and scope, then escalation rules, then side-effect caveats in rough priority order. Dense but almost every clause carries operational meaning; the heavy parentheticals (page button names, code formats) add some visual clutter without genuine waste.

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?

An output schema exists, so return values need not be explained, and the remaining complexity (mutation, confirmation gate, no recalculation, conflict detection) is covered. Minor residual gaps are permission/auth requirements and how to obtain alu_id, which the description assumes the agent already has.

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 description coverage is 0%, so the description must compensate, and it does for the parameters that matter: item (item_id or code as returned by get_evaluation, or the literal "final"), grade (empty string clears), and confirm (preview vs. actual write). It only lightly implies subject_id/term_id/alu_id via "one subject and term" and "one student", leaving ID formats and the meaning of term_id's empty default 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?

"Set ONE grade for ONE student in the 'Avaluar' page of one subject and term" gives a specific verb, resource and hard scope boundary (single cell, single student). It explicitly distinguishes the payload shape via item semantics (item_id/code or "final") and separates itself from grade recalculation, which is the clearest sibling confusion an agent could have.

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 gives an explicit two-step protocol: no confirm returns a preview that changes nothing, and confirm=True is only sent after teacher approval. It also states what the tool does NOT do (does not press 'calcular', does not batch like 'Guardar i tancar'), which implicitly routes recalculation elsewhere. It stops short of naming a sibling such as calculate_grades or set_subject_remark outright.

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