Skip to main content
Glama

canvas_list_announcements

Retrieve and display all course announcements in Canvas using the specified course ID to streamline access to important updates.

Instructions

List all announcements in a course

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
course_idYesID of the course

Implementation Reference

  • The core Canvas API client method implementing the logic to list announcements for a given course by querying discussion topics with type='announcement'. This is the primary handler logic for the tool.
    async listAnnouncements(courseId: string): Promise<CanvasAnnouncement[]> {
      const response = await this.client.get(`/courses/${courseId}/discussion_topics`, {
        params: {
          type: 'announcement',
          include: ['assignment']
        }
      });
      return response.data;
    }
  • src/index.ts:559-568 (registration)
    Tool registration in the TOOLS array, defining the tool name, description, and input schema for MCP tool listing.
      name: "canvas_list_announcements",
      description: "List all announcements in a course",
      inputSchema: {
        type: "object",
        properties: {
          course_id: { type: "number", description: "ID of the course" }
        },
        required: ["course_id"]
      }
    },
  • Usage of the listAnnouncements method in the MCP resource reading handler for announcements://course_id resources.
    case "announcements":
      content = await this.client.listAnnouncements(id);
      break;
  • TypeScript interface defining the structure of CanvasAnnouncement objects returned by the tool.
    export interface CanvasAnnouncement {
      id: number;
      title: string;
      message: string;
      posted_at: string;
      html_url: string;
      user_has_posted: boolean;
      discussion_subentry_count: number;
    }
  • src/index.ts:1071-1073 (registration)
    MCP server registration of all tools including canvas_list_announcements via ListToolsRequestSchema handler.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: TOOLS
    }));
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states a read operation ('List') but does not mention permissions, rate limits, pagination, or what the output includes (e.g., format, fields). This is inadequate for a tool with zero annotation coverage, as it omits key behavioral traits.

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 front-loads the core action and resource. There is no wasted wording, making it highly concise and well-structured for quick understanding.

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. It does not cover behavioral aspects like permissions or output format, and while the schema handles parameters, the overall context for safe and effective use is insufficient. This is a read tool with minimal disclosure, leaving gaps in 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%, so the schema already documents the 'course_id' parameter fully. The description adds no additional meaning beyond implying the parameter is used to scope the list, which is redundant with the schema. Baseline 3 is appropriate when the schema handles parameter documentation effectively.

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 verb ('List') and resource ('announcements in a course'), making the purpose specific and understandable. However, it does not explicitly differentiate from sibling tools like 'canvas_list_discussion_topics' or 'canvas_list_notifications', which might also list course-related content, so it misses full sibling distinction.

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 other list tools for announcements or related resources. It lacks context on prerequisites, exclusions, or comparisons to siblings, leaving usage unclear beyond the basic purpose.

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