Skip to main content
Glama

search_course_files

Search for files in a Canvas course by name, extension, or folder to preview results before downloading.

Instructions

Search for files in a Canvas course by name, extension, or folder.

Use this as a preview step before downloading — show the user what would be downloaded and let them confirm.

Args: course_id: The Canvas course ID. query: Case-insensitive substring to match in file display name or filename. file_type: File extension to filter by (e.g. "pdf", "docx"). Leading dot is stripped. folder: Case-insensitive substring to match in the Canvas folder path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
course_idYes
queryNo
file_typeNo
folderNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses case-insensitive substring matching, leading dot stripping for file_type, and parameter behaviors. Lacks discussion of pagination or return volume, but output schema covers return structure.

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 short, front-loaded with purpose and usage hint, then a clear arg list. Every sentence adds value with no redundancy.

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

Completeness5/5

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

Given four parameters, no annotations, and existing output schema, the description covers all necessary aspects: parameter details, usage rationale, and behavioral notes. It is complete for the complexity level.

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

Parameters5/5

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

Schema description coverage is 0%, so description must compensate. It provides detailed semantics for all four parameters: course_id, query (case-insensitive substring), file_type (extension, leading dot stripped), and folder (case-insensitive path). This fully compensates for the missing schema descriptions.

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 it searches for files in a Canvas course by name, extension, or folder. This distinguishes it from list_course_files (which lists all files) but does not explicitly name the sibling.

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

Usage Guidelines4/5

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

Explicitly says to use as a preview step before downloading, giving a clear when-to-use context. Does not mention when not to use or alternative tools, but the context is sufficient.

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

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/tomtranjr/canvas-control'

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