Skip to main content
Glama

canvas_get_page

Retrieve the content of a specific page from a Canvas course using the course ID and page URL slug. Simplify access to Canvas LMS course materials.

Instructions

Get content of a specific page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
course_idYesID of the course
page_urlYesURL slug of the page

Implementation Reference

  • MCP tool handler implementation for 'canvas_get_page'. Parses arguments, validates inputs, calls CanvasClient.getPage(), and returns JSON response.
    case "canvas_get_page": {
      const { course_id, page_url } = args as { course_id: number; page_url: string };
      if (!course_id || !page_url) {
        throw new Error("Missing required fields: course_id and page_url");
      }
      
      const page = await this.client.getPage(course_id, page_url);
      return {
        content: [{ type: "text", text: JSON.stringify(page, null, 2) }]
      };
    }
  • Input schema definition for the canvas_get_page tool, specifying course_id (number) and page_url (string) as required parameters.
      name: "canvas_get_page",
      description: "Get content of a specific page",
      inputSchema: {
        type: "object",
        properties: {
          course_id: { type: "number", description: "ID of the course" },
          page_url: { type: "string", description: "URL slug of the page" }
        },
        required: ["course_id", "page_url"]
      }
    },
  • src/index.ts:1072-1074 (registration)
    Registration of tool list handler. Returns the TOOLS array which includes the canvas_get_page tool definition.
      tools: TOOLS
    }));
  • CanvasClient.getPage method: Makes API call to retrieve specific page content from Canvas and returns CanvasPage object.
    async getPage(courseId: number, pageUrl: string): Promise<CanvasPage> {
      const response = await this.client.get(`/courses/${courseId}/pages/${pageUrl}`);
      return response.data;
    }
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 'Get content' which implies a read-only operation, but doesn't mention authentication requirements, rate limits, error handling, or what happens if the page doesn't exist. For a tool with zero annotation coverage, this is a significant gap in transparency.

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 with zero waste—it directly states the tool's purpose without fluff. It's appropriately sized for a simple retrieval tool and front-loaded with the core action.

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?

Given the tool's low complexity (2 parameters, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose but lacks details on behavior, error cases, or output format, which could help the agent use it correctly. Without annotations or output schema, more context would improve completeness.

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%, with clear descriptions for both parameters (course_id and page_url). The description adds no additional parameter semantics beyond what the schema provides, such as explaining URL slug format or course ID sourcing. Baseline 3 is appropriate when the schema does the heavy lifting.

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 content') and resource ('specific page'), which distinguishes it from siblings like canvas_list_pages (which lists pages) or canvas_get_course (which retrieves course info). However, it doesn't specify the format of the returned content (e.g., HTML, JSON), which keeps it from a perfect score.

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?

No explicit guidance is provided on when to use this tool versus alternatives. While the description implies it's for retrieving a single page's content, it doesn't mention prerequisites (e.g., needing course access) or contrast with siblings like canvas_list_pages for browsing pages. This leaves the agent to infer usage context.

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