Skip to main content
Glama

创建课程

classin_add_course

Create a ClassIn course to organize and manage class sessions. Configure course name, subject, teacher, expiration, and more, then get the course ID.

Instructions

创建ClassIn课程。课程是管理课节的容器。

参数:

  • courseName: 课程名称(必填),1-90字符

  • folderId: 可用资源文件夹ID

  • expiryTime: 过期时间戳,不传表示永不过期

  • mainTeacherUid: 班主任UID,可在客户端管理课程

  • subjectId: 学科分类ID (0:空, 1:语文, 2:数学, 3:英语...)

  • courseIntroduce: 课程简介,最长400字符

  • classroomSettingId: 教室设置ID

  • courseUniqueIdentity: 唯一标识,防止重复创建

  • allowAddFriend: 是否允许班级成员互相添加好友 (0/1)

  • allowStudentModifyNickname: 是否允许学生修改班级昵称 (0/1)

返回:

  • 成功返回课程ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderIdNo可用资源文件夹ID
subjectIdNo学科分类ID
courseNameYes课程名称,1-90个字符
expiryTimeNo过期时间戳,不传或传0表示永不过期
allowAddFriendNo是否允许班级成员互相添加好友
mainTeacherUidNo班主任UID
courseIntroduceNo课程简介,最长400个字符
response_formatNo输出格式: 'markdown' 人类可读格式 或 'json' 机器可读格式markdown
classroomSettingIdNo教室设置ID,在eeo.cn后台获取
courseUniqueIdentityNo唯一标识,1-32位字母数字组合,用于防止重复创建
allowStudentModifyNicknameNo是否允许学生修改班级昵称
Behavior4/5

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

Annotations already indicate a write operation (readOnlyHint=false, destructiveHint=false). The description adds valuable behavioral context: it states the return value (course ID), explains the idempotency protection via courseUniqueIdentity, and clarifies parameter effects like mainTeacherUid's management role. No contradictions with annotations.

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 well-structured with a brief intro, a bullet-style parameter list, and a return statement. It is appropriately sized for 11 parameters, and every part is relevant, though the parameter list partially duplicates schema descriptions.

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?

Given the tool's complexity (11 parameters, 1 required) and lack of an output schema, the description covers the return value, parameter semantics, and the conceptual role of a course. It doesn't mention authorization needs or error cases, but the provided info is sufficient for an agent to make a successful call.

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?

While the schema already provides full parameter coverage (100%), the description adds semantic value by explaining subjectId categories (0:空, 1:语文, 2:数学...) and clarifying expiryTime's default behavior. This goes beyond the schema's terse descriptions and aids correct parameter selection.

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 '创建ClassIn课程' (create a ClassIn course) and defines a course as a container for class sessions, which distinguishes it from sibling tools like adding students to courses or editing courses. The verb and resource are specific and unambiguous.

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?

The description implies usage (to create a course) but does not explicitly specify when to use this tool versus alternatives like classin_edit_course or classin_end_course. There are no explicit exclusions or prerequisites, so it provides clear context without direct alternative comparisons.

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/yuanlang12/classin-mcp-server'

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