Skip to main content
Glama

canvas_list_account_users

Retrieve and filter users for a specified account in Canvas LMS by ID, search term, or sort criteria using the MCP server interaction tool.

Instructions

List users for an account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYesID of the account
orderNoSort direction
search_termNoSearch term to filter users
sortNoSort order

Implementation Reference

  • src/index.ts:741-754 (registration)
    Tool registration in the TOOLS array with name 'canvas_list_account_users', description, and input schema definition.
    {
      name: "canvas_list_account_users",
      description: "List users for an account",
      inputSchema: {
        type: "object",
        properties: {
          account_id: { type: "number", description: "ID of the account" },
          search_term: { type: "string", description: "Search term to filter users" },
          sort: { type: "string", enum: ["username", "email", "sis_id", "last_login"], description: "Sort order" },
          order: { type: "string", enum: ["asc", "desc"], description: "Sort direction" }
        },
        required: ["account_id"]
      }
    },
  • MCP tool call handler for 'canvas_list_account_users' that validates input, calls CanvasClient.listAccountUsers, and returns JSON response.
    case "canvas_list_account_users": {
      const accountUsersArgs = args as unknown as ListAccountUsersArgs;
      if (!accountUsersArgs.account_id) {
        throw new Error("Missing required field: account_id");
      }
      
      const users = await this.client.listAccountUsers(accountUsersArgs);
      return {
        content: [{ type: "text", text: JSON.stringify(users, null, 2) }]
      };
    }
  • TypeScript interface defining input arguments for listAccountUsers (account_id required, optional filters). Used in tool schema and client method.
    export interface ListAccountUsersArgs {
      account_id: number;
      search_term?: string;
      enrollment_type?: string;
      sort?: 'username' | 'email' | 'sis_id' | 'last_login';
      order?: 'asc' | 'desc';
      include?: string[];
    }
  • Core CanvasClient method implementing listAccountUsers: extracts account_id and params, makes API GET request to /accounts/{account_id}/users, returns users array.
    async listAccountUsers(args: ListAccountUsersArgs): Promise<CanvasUser[]> {
      const { account_id, ...params } = args;
      const response = await this.client.get(`/accounts/${account_id}/users`, { params });
      return response.data;
    }
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 the action ('List users') but doesn't describe key behaviors: whether this is a read-only operation (implied but not explicit), if it requires specific permissions, how results are paginated or limited, what the output format looks like, or any rate limits. For a list tool with zero annotation coverage, this leaves significant gaps in understanding how the tool behaves beyond basic functionality.

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 ('List users for an account') that front-loads the core purpose without unnecessary words. It avoids redundancy (e.g., not restating the tool name 'canvas_list_account_users') and wastes no space on extraneous details, making it easy to parse quickly. Every word earns its place by conveying essential information.

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 tool's complexity (a list operation with 4 parameters, no output schema, and no annotations), the description is incomplete. It lacks information on behavioral traits (e.g., pagination, permissions), output format, and usage guidelines. While the schema covers parameters well, the description doesn't address these gaps, making it insufficient for an agent to fully understand how to invoke and interpret results from this tool in context.

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 all parameters well-documented in the schema (e.g., 'account_id' as ID of the account, 'order' as sort direction). The description adds no additional semantic context beyond what the schema provides—it doesn't explain parameter interactions (e.g., how 'search_term' and 'sort' work together) or usage examples. With high schema coverage, the baseline score of 3 is appropriate, as the description doesn't compensate but doesn't need to heavily.

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 ('users for an account'), making the purpose immediately understandable. It distinguishes this tool from siblings like 'canvas_list_courses' or 'canvas_list_sub_accounts' by specifying it lists users rather than other account-related entities. However, it doesn't explicitly differentiate from 'canvas_get_user_profile' or 'canvas_get_user_grades', which are also user-focused but not list operations.

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. It doesn't mention prerequisites (e.g., needing account access), exclusions (e.g., not for listing users across multiple accounts), or comparisons to other user-related tools like 'canvas_get_user_profile' or 'canvas_list_courses' (which might include users). Without such context, an agent must infer usage from the tool name and parameters 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