Skip to main content
Glama

list_files

Read-only

List synced course files and external links by course, week, or recency, including files not yet downloaded. Use it to see which materials are available locally or linked.

Instructions

列已同步本地课件或外链,不搜索正文;搜正文用 search_content,读取 path 用 read_file。问“最近新上了什么课件”用 since_days,没下载的用 skipped。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
weekNo教学周编号,如 8
linksNotrue=列外链;须同时给 course
queryNo按文件名或路径筛选
courseNo课程号,如 FIT2102;省略=全部
skippedNotrue=列没下载的文件
since_daysNo只看最近几天新同步的,新的排前面

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.16.0
    • addedInput schema / properties / skipped
      Added value: +{
      +  "description": "true=列没下载的文件",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv1.5.0
    • addedInput schema / properties / since_days
      Added value: +{
      +  "description": "只看最近几天新同步的,新的排前面",
      +  "type": "integer"
      +}
  3. Changed4 schema fields changedv0.1.3
    • addedInput schema / properties / course / description
      Added value: +"课程号,如 FIT2102;省略=全部"
    • addedInput schema / properties / links / description
      Added value: +"true=列外链;须同时给 course"
    • addedInput schema / properties / query / description
      Added value: +"按文件名或路径筛选"
    • addedInput schema / properties / week / description
      Added value: +"教学周编号,如 8"
  4. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds useful behavioral context that the result set is limited to synced items and excludes content searching. It also notes that since_days puts newer items first, which is ordering behavior. It does not describe item shape or result limits, keeping it just short of a 5.

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?

Three tight clauses, semicolon-delimited, with the scope and exclusions front-loaded before the parameter hints. No filler and every clause carries routing information.

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

Completeness4/5

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

For a six-parameter, all-optional, read-only listing tool with no output schema, the description covers purpose, exclusions, alternatives, and the two non-obvious parameters. A brief note on what a returned item contains would make it fully self-sufficient, but nothing essential for correct invocation is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds intent-level meaning for since_days and skipped that the schema only states mechanically. It maps natural-language questions ('what's newly added') to the right parameter, which is genuine added value.

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 states a specific verb+resource with a clear scope: it lists already-synced local course files or external links. It immediately delimits that scope by saying it does not search file contents, which separates it cleanly from search_content and read_file.

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

Usage Guidelines5/5

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

It names the two sibling alternatives explicitly (search_content for content search, read_file for reading a path) and gives the routing condition for each. It goes further by mapping user intents to parameters: 'recently added' questions go to since_days, and non-downloaded files go to skipped.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.