Skip to main content
Glama

创建LMS课堂活动

classin_create_classroom_activity

Create a classroom activity under an LMS unit with course, teacher, start/end times, and seat count. Returns the new activity ID.

Instructions

在LMS单元下创建课堂活动。

注意: 课堂是课节的升级版本,推荐新对接的机构使用课堂而非课节。

参数:

  • courseId: 课程ID

  • unitId: 所属单元ID(可选,不传则创建在无主题单元下)

  • name: 活动名称

  • teacherUid: 授课老师UID

  • startTime: 开始时间戳(秒)

  • endTime: 结束时间戳(秒)

  • seatNum: 上台人数(含老师,默认7)

返回:

  • 成功返回活动ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations already indicate this is a write operation (readOnlyHint=false, destructiveHint=false). The description adds that a successful call returns an activity ID, which is useful. However, it does not disclose permissions, failure modes, or side effects beyond creation, so it only partially augments the annotation-provided safety profile.

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 well-structured: purpose statement first, followed by an important note, a clear parameter list, and return value. Every sentence adds value, and the parameter formatting is easy to scan.

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 create tool with no output schema, the description covers the core need: what it creates, key parameters, and the return value. It lacks error-condition details and explicit permission requirements, but given the annotation context and sibling tool set, it is largely complete.

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?

The input schema is empty, so the description carries the full burden for parameter documentation. It lists all seven parameters with meanings, optionality (unitId), types (timestamps in seconds), and default values (seatNum=7), providing complete semantic context beyond the schema.

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 creates a classroom activity under an LMS unit, using the verb '创建' (create) and a specific resource. The note about classroom being an upgraded version of 课节 and the sibling tool 'classin_create_activity_noclass' help distinguish this from similar create operations.

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 includes the recommendation to use classroom over lesson for new integrations, providing context for when this tool is appropriate. It also explains optional parameters (unitId) and defaults, though it does not explicitly name alternatives or exclusions.

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