grades

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Definition = &mcp.Tool{
	Name:        "get_grades",
	Description: "Get grades. Without course: summary table. With course: detailed activity breakdown and per-task scores.",
}

Definition is the MCP tool definition.

Functions

func NewHandler

NewHandler creates the tool handler.

Types

type Input

type Input struct {
	Course string `json:"course,omitempty" jsonschema:"Course name or ID (optional — omit for all courses)"`
}

Input for the tool.

type LMSClient

type LMSClient interface {
	ResolveCourse(ctx context.Context, query string) (int, string, error)
	GetStudentCourses(ctx context.Context, limit int, state string) (*cuGw.StudentCoursesResponse, error)
	GetCourseProgress(ctx context.Context, courseID int) (*cuGw.CourseProgress, error)
	GetStudentPerformance(ctx context.Context, courseID int) (*cuGw.StudentPerformance, error)
	GetActivitiesPerformance(ctx context.Context, courseID int) (*cuGw.ActivitiesPerformance, error)
	GetCourseExercises(ctx context.Context, courseID int) (*cuGw.CourseExercises, error)
}

LMSClient defines dependencies for this tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL