Skip to main content
Glama

canvas_get_account

Retrieve detailed account information from the Canvas Learning Management System by providing the account ID, enabling efficient management and integration with Canvas resources.

Instructions

Get account details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYesID of the account

Implementation Reference

  • Core handler function that makes the Canvas API call to retrieve account details by ID.
    async getAccount(accountId: number): Promise<CanvasAccount> {
      const response = await this.client.get(`/accounts/${accountId}`);
      return response.data;
    }
  • src/index.ts:714-722 (registration)
    Tool registration in the TOOLS array, defining name, description, and input schema.
    name: "canvas_get_account",
    description: "Get account details",
    inputSchema: {
      type: "object",
      properties: {
        account_id: { type: "number", description: "ID of the account" }
      },
      required: ["account_id"]
    }
  • MCP server handler that validates input and delegates to CanvasClient.getAccount.
    case "canvas_get_account": {
      const { account_id } = args as { account_id: number };
      if (!account_id) throw new Error("Missing required field: account_id");
      
      const account = await this.client.getAccount(account_id);
      return {
        content: [{ type: "text", text: JSON.stringify(account, null, 2) }]
      };
    }
  • TypeScript interface defining the structure of CanvasAccount response data.
    export interface CanvasAccount {
      id: number;
      name: string;
      uuid: string;
      parent_account_id: number | null;
      root_account_id: number | null;
      default_storage_quota_mb: number;
      default_user_storage_quota_mb: number;
      default_group_storage_quota_mb: number;
      default_time_zone: string;
      sis_account_id: string | null;
      integration_id: string | null;
      sis_import_id: number | null;
      lti_guid: string;
      workflow_state: string;
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. 'Get account details' implies a read-only operation but does not disclose behavioral traits such as authentication requirements, rate limits, error handling, or what constitutes 'details' (e.g., permissions, settings). This leaves significant gaps for a tool with no annotation coverage.

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

Conciseness4/5

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

The description is a single, efficient sentence with no wasted words. It is appropriately sized for a simple tool, though it could be more informative without sacrificing brevity.

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 no annotations, no output schema, and a simple input schema, the description is incomplete. It lacks details on what 'account details' include, how to interpret results, or any behavioral context, making it inadequate for effective tool use despite low complexity.

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 the parameter 'account_id' documented as 'ID of the account'. The description does not add meaning beyond the schema, but with high coverage, the baseline is 3. No additional context or examples are provided for the parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get account details' restates the tool name 'canvas_get_account' with minimal elaboration, making it tautological. It specifies the verb 'Get' and resource 'account details' but lacks specificity about what details are retrieved or how it differs from sibling tools like canvas_get_user_profile or canvas_list_account_users.

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

Usage Guidelines1/5

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

No guidance is provided on when to use this tool versus alternatives. With siblings like canvas_list_account_users and canvas_get_user_profile, there is no indication of context, prerequisites, or exclusions for selecting this tool.

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