Skip to main content
Glama

get_exercise

Read-onlyIdempotent

Read a student-visible course exercise to retrieve its problem statement, release and due dates, and file download URLs. Optionally verify the exercise belongs to a specific course before use.

Instructions

Read one student-visible course exercise. Returns the problem statement, release, start, and due dates, and a downloadUrl for each student file linked from the statement. Does not return grades, results, example solutions, or exam exercises. Optional courseId checks the exercise belongs to that course. Read-only.

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": {
      "exerciseId": "<exerciseId>"
    },
    "name": "get_exercise"
  }
}

Input Schema

NameRequiredDescriptionDefault
courseIdNo
exerciseIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the description adds real value on top: the exact payload returned (statement, release/start/due dates, per-file downloadUrl) and, importantly, what is deliberately withheld (grades, results, example solutions). Access scope ('student-visible') is disclosed. It does not state failure behavior for a non-member or unknown exerciseId.

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, then the payload, then the exclusions, then the parameter note. No filler; the trailing 'Read-only.' is mildly redundant given the annotations but reinforces intent at negligible cost.

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 no output schema, the description correctly spends its words on the return shape and the intentional omissions, which is exactly what an agent needs. The only gap is error/not-found behavior and how to obtain a valid exerciseId, both minor for a simple read 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?

Schema coverage is 0%, so the description carries the burden. It explains courseId well ('checks the exercise belongs to that course'), giving validation semantics the schema lacks, but exerciseId is only implied by 'one ... exercise' with no format or sourcing guidance. Partial compensation for a two-parameter tool.

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?

Opens with a specific verb and resource ('Read one student-visible course exercise') and scopes it precisely: student-visible, one exercise. The enumeration of returned fields plus the explicit exclusions (grades, results, example solutions, exam exercises) makes it unmistakable against siblings like get_exam_result or list_exercises.

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?

The exclusions effectively say when not to use it — no exam exercises, no grades or solutions — which routes the agent toward get_exam_result and result-oriented siblings. It stops short of naming a companion tool for enumerating exercises (list_exercises) or a fallback when an id is unknown.

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