Skip to main content
Glama

canvas_get_user_grades

Retrieve all user grades from the Canvas LMS API using the MCP server, enabling efficient tracking and management of academic performance within the platform.

Instructions

Get all grades for the current user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core implementation of the tool: fetches the current user's grades from Canvas API endpoint `/users/self/grades`.
    async getUserGrades(): Promise<any> {
      const response = await this.client.get('/users/self/grades');
      return response.data;
    }
  • MCP server handler for the tool: calls the CanvasClient.getUserGrades() method and formats the response as MCP content.
    case "canvas_get_user_grades": {
      const grades = await this.client.getUserGrades();
      return {
        content: [{ type: "text", text: JSON.stringify(grades, null, 2) }]
      };
    }
  • src/index.ts:401-408 (registration)
    Tool registration in the TOOLS array, including name, description, and empty input schema (no parameters required).
      name: "canvas_get_user_grades",
      description: "Get all grades for the current user",
      inputSchema: {
        type: "object",
        properties: {},
        required: []
      }
    },
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool retrieves grades but omits critical details like whether this requires user authentication, if it returns all grades at once or paginated, what format the grades are in, or any rate limits. This is a significant gap for a tool that likely involves sensitive data access.

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

Conciseness5/5

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

The description is a single, efficient sentence that directly states the tool's purpose without any unnecessary words or fluff. It is front-loaded and wastes no space, making it easy for an agent to parse quickly.

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

Completeness2/5

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

Given the lack of annotations and output schema, the description is incomplete for a tool that retrieves user grades. It doesn't explain the return format, error conditions, authentication requirements, or data scope (e.g., historical vs. current grades). For a sensitive read operation, this leaves too many unknowns for reliable agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and the input schema has 100% description coverage (though empty). The description adds no parameter information, which is appropriate here since there are no parameters to document. A baseline score of 4 is assigned as the description doesn't need to compensate for any parameter gaps.

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 clearly states the action ('Get') and resource ('all grades for the current user'), making the purpose specific and understandable. However, it doesn't explicitly differentiate from siblings like 'canvas_get_course_grades' or 'canvas_get_submission', which might retrieve similar grade-related data but with different scopes or parameters.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives, such as 'canvas_get_course_grades' for course-specific grades or 'canvas_get_submission' for detailed submission data. It lacks context about prerequisites, user authentication needs, or any exclusions, leaving the agent to infer usage from the tool name alone.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DMontgomery40/mcp-canvas-lms'

If you have feedback or need assistance with the MCP directory API, please join our Discord server