A Cloudflare Workers-based AI chat agent that integrates with Canvas LMS via Model Context Protocol (MCP) to retrieve courses and assignments
Two tools with basic descriptions but significant gaps in schema completeness and parameter documentation. getCourses has empty input schema ({}), violating schema requirements. getAssignments has a single parameter with type but no validation constraints. Descriptions are present (94 and 168 chars respectively) but lack WHEN-to-use guidance and dependency hints. No error handling guidance, no output schema documentation, no parameter constraints (enums, ranges). Tool names follow verb_noun pattern (good), but descriptions do not explain prerequisites or recovery paths. No evidence of idempotency, pagination, or result limiting for potentially large datasets (courses, assignments).
Use this tool to retrieve all assignments for a specific Canvas course by course name. Provide the course name as input, and the tool will return a list of assignments associated with that course. This is useful for accessing assignment details, due dates, and other related information for a given course.
Use this tool to retrieve all available Canvas courses for the current user. This tool returns a dictionary mapping course names to their corresponding IDs. Use this when you need to find course IDs based on names, display all available courses, or when needing to access any course-related information
getCourses has empty input schema ({}). No validation, no documentation of what the tool accepts or returns.
No output schemas documented for either tool. LLMs cannot plan downstream calls or extract required fields (e.g., course_id for getAssignments). Violates pattern:tool requirement.
getAssignments parameter 'course_name' lacks validation constraints (enum, pattern, length limits). Description does not specify format or handling of ambiguous names (multiple courses with same name).
No error handling guidance. Descriptions do not explain what happens if course not found, if user has no courses, or if API fails. No recovery hints (e.g., 'Try search_courses() with partial name').
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 34 | 2026-07-28+ | v2 |
No pagination or result-limiting strategy documented. If a user has 100+ courses or an assignment has 100+ submissions, response could blow context window. No limit parameter, no cursor, no total count.