Skip to main content
Glama

列出我的课程

lexue_list_courses
Read-onlyIdempotent

Retrieve a paginated course list with course numbers, semesters, and codes; filter by name, course code, or term to find specific courses.

Instructions

读取课程列表的一页,返回课程编号、学期和代码。可在这一页筛选名称、代码和学期。

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": "lexue_list_courses"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
termNo
courseCodeNo
pageNumberNo
teachingOnlyNo为 true 时仅保留页面显示开始授课入口的课程,部分测试课不显示该入口。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds that results are paged and that filtering is scoped to the current page, which is genuinely useful, but it never states page size, total-count behavior, or whether filters are applied server-side across all pages — the ambiguity in '在这一页筛选' is itself a behavioral gap.

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?

Two short sentences with no filler: what it returns is front-loaded, then the optional filtering. Nothing redundant or padded.

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

Completeness3/5

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

With five optional params, no output schema, and sparse schema descriptions, the definition does reasonably well by naming the return fields. It is still incomplete on pagination mechanics and on the teachingOnly parameter, which meaningfully changes what a page contains.

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 only 20% (only teachingOnly is documented in the schema), so the description must compensate. It maps name/courseCode/term to the described filters, but leaves pageNumber's semantics (page size, out-of-range behavior) and teachingOnly completely unaddressed in prose.

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?

States a specific verb+resource (读取课程列表) plus the returned fields (课程编号、学期、代码), so an agent knows exactly what it gets. It does not distinguish itself from the single-course sibling lexue_get_course, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied: '一页' signals a paged list that must be walked with pageNumber, and '可在这一页筛选' signals optional filtering. There is no explicit when-to-use, when-not-to-use, or named alternative (e.g., use lexue_get_course for a single course).

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