Skip to main content
Glama

generate_what_if_scenarios

Calculate the grades needed on remaining assignments to reach a target percentage or letter grade in a Canvas course, so you can plan final-exam and coursework outcomes.

Instructions

🎯 NEW PHASE 2 Generate what-if scenarios for achieving target grades. Answers questions like "What grade do I need on the final to get an A?"

Input Schema

NameRequiredDescriptionDefault
userIdNoOptional user ID to generate scenarios for (defaults to current user)
courseIdNoThe Canvas course ID (numeric)
courseNameNoThe course name (e.g., "Art 113N", "CMPEN 431"). If provided, courseId is not required.
targetGradeNoTarget grade percentage (e.g., 90 for 90%)
targetLetterGradeNoTarget letter grade (e.g., "A", "B+", "C"). If provided, targetGrade is not required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. The example question does convey that this is a hypothetical computation rather than a data mutation, which is the key behavioral signal, but it never states that it is read-only, what the scenario output looks like, or how many scenarios are returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The body is short and front-loaded, but the '🎯 **NEW PHASE 2**' prefix is release-note noise that consumes the highest-attention position without informing tool selection.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a computation tool with no output schema and no annotations, the description should say what a 'scenario' contains (required score, achievable outcome, assumptions). The example question partially covers this but leaves the return shape and edge-case behavior (e.g., unachievable targets) unspecified.

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 100%, so every parameter (userId, courseId, courseName, targetGrade, targetLetterGrade) is already documented. The description adds no additional semantics such as the courseId-vs-courseName alternative or the grade/letter-grade pairing rules encoded in the anyOf, leaving the schema to do all the work.

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 verb and resource ('Generate what-if scenarios') and scopes it to 'achieving target grades', then reinforces it with a concrete example question. It is clearly distinguishable from the retrieval siblings in the catalog, though it never explicitly contrasts with analytics tools like calculate_course_analytics.

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

Usage Guidelines3/5

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

Usage is only implied through the example question ('What grade do I need on the final to get an A?'). There is no explicit statement of when to prefer this over calculate_course_analytics or get_grade_trends, and no prerequisites (e.g., whether grades must already exist) are mentioned.

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