Skip to main content
Glama

Target grade

get_target_grade
Read-only

Calculate points still needed on remaining work to reach a desired class percentage, for selected courses or all active classes.

Instructions

Points needed on the work that is left to reach a target percent in each class. Adds up the points earned on graded work and the points the work left is worth, then says how many of those points you still need. target_percent is the percent you want, from 0 to 100. Pass course_ids to limit it, or leave empty for all active classes. Use this when the user asks 'What do I need to score to get a 90?' or 'Can I still get an A in this class?'

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": {
      "target_percent": "<target_percent>"
    },
    "name": "get_target_grade"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoHow many classes to skip. Up to 15 classes are read at a time, so pass 15 to see the next 15. Leave empty to start at the first class.
course_idsNoClassroom course IDs to check. Leave empty for all active classes.
course_nameNoPart of a class name or section, for example Biology. It is matched without checking case and added to course_ids, so you can skip get_my_courses. Leave empty to use course_ids only.
target_percentYesThe class percent you want, from 0 to 100. For example 90.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.10
    • addedInput schema / properties / course_name
      Added value: +{
      +  "description": "Part of a class name or section, for example Biology. It is matched without checking case and added to course_ids, so you can skip get_my_courses. Leave empty to use course_ids only.",
      +  "type": "string"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "How many classes to skip. Up to 15 classes are read at a time, so pass 15 to see the next 15. Leave empty to start at the first class.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv0.1.5

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful behavior: it explains the arithmetic behind the answer and notes that up to 15 classes are read per call (the offset parameter's schema text carries the pagination detail). It doesn't cover edge cases such as classes with no graded work or ungraded categories.

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?

The core purpose is front-loaded in the first sentence, and the mechanism sentence plus the example questions earn their place. Slightly long, with minor redundancy between the mechanism sentence and the target_percent restatement, but nothing is wasted.

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?

There is no output schema, so the description must carry the return-value burden; it does say the result is a per-class count of points still needed, which is the key shape. It stops short of describing all returned fields (e.g., current percent or points already earned), leaving a small gap for a computation tool.

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?

With 100% schema description coverage, the schema already documents offset, course_ids, course_name, and target_percent in detail. The description restates target_percent's 0-100 range and the course_ids scoping rule but adds no new semantic meaning, and it never mentions course_name or offset, so baseline 3 applies.

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

Purpose4/5

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

The description names a specific computation and resource: 'Points needed on the work that is left to reach a target percent in each class,' and explains the mechanism (points earned plus points remaining). This implicitly separates it from get_my_grades, but it never names that sibling explicitly, so differentiation relies on inference.

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 concrete triggering conditions via example user questions ('What do I need to score to get a 90?', 'Can I still get an A in this class?') and clarifies scoping behavior for empty course_ids. It also notes that course_name exists so you can skip get_my_courses, but it doesn't state when NOT to use this tool.

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