Skip to main content
Glama

find_duplicate_files

Read-only

Identifies duplicate files in a Canvas course's Files area based on identical name and size. Helps remove copies left from repeated course imports to reduce accessibility checker alerts.

Instructions

Find duplicate files in a course's Files area — copies with the same name and size, typically left behind by repeated course copies. Each duplicate gets flagged separately by accessibility checkers, so this surfaces them for cleanup with the existing delete_file tool. Groups by display name + size (Canvas file listings carry no content hash), so same-name files of different sizes are not considered duplicates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
course_idYesThe Canvas course ID
folder_idNoOptional Canvas folder ID to scope the search to that folder and its subfolders
Behavior4/5

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

Annotations declare readOnlyHint and openWorldHint, and the description reinforces the read-only nature and adds context about duplicate detection logic and limitations (no content hash). This goes beyond annotations by explaining the grouping and accessibility checker context.

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 paragraph of moderate length, front-loaded with the core purpose. It is efficient but could be slightly more structured (e.g., separate sentences for output hint). Still, no wasted words.

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?

The description lacks any mention of the output/return value, which is critical since there is no output schema. It would be helpful to state that the tool returns a list of duplicate file entries or similar, especially since it's meant for cleanup. This is a notable gap.

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 coverage is 100% with clear descriptions for both parameters (course_id and folder_id). The tool description does not add new semantic information beyond the schema; it only references 'course' and 'folder' which are already clear. Baseline 3 is appropriate.

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

Purpose5/5

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

The description clearly states the tool finds duplicate files in a course's Files area based on same name and size, with specific context of repeated course copies. It distinguishes itself from other file-related tools by focusing on duplicates for cleanup.

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?

The description explains the tool is used to surface duplicates left by course copies for cleanup with delete_file. It implies when to use it but does not explicitly state when not to use it or provide alternatives. The grouping logic is clarified, aiding appropriate invocation.

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/bruchris/canvas-lms-mcp'

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