Skip to main content
Glama

课程添加学生

classin_add_course_student
Idempotent

Add a student or auditor to a course using course ID and student UID. Select identity 1 for student or 2 for auditor.

Instructions

向课程中添加学生或旁听。

参数:

  • courseId: 课程ID

  • studentUid: 学生UID

  • identity: 身份类型,1=学生,2=旁听

返回:

  • 成功返回操作结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
courseIdYes课程ID,通过创建课程接口获得
identityNo身份: 1=学生, 2=旁听
studentUidYes要添加的学生UID
response_formatNo输出格式: 'markdown' 人类可读格式 或 'json' 机器可读格式markdown
Behavior2/5

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

Annotations already indicate this is a mutating, non-destructive, idempotent operation, so the description adds little beyond confirming it adds students. It does not disclose prerequisites, side effects, error conditions, or behavior when adding duplicate students. The generic '成功返回操作结果' adds no specific behavior detail.

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 succinct, with a clear purpose statement, parameter list, and return note. It is slightly redundant with the schema but remains free of fluff and well-organized.

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?

The tool is simple, and the schema is rich, but the description does not mention usage alternatives or error cases. It omits the response_format parameter behavior and does not explain the operation result. Adequate for a straightforward add operation but with gaps in guidance and edge-case transparency.

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 100%, and the schema provides detailed parameter meanings (e.g., courseId obtained from create course API, identity enum values). The description merely restates the parameter names and minimal meanings, adding no significant value over 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 it adds students or auditors to a course with the verb '添加' (add) and resource '课程' (course). It distinguishes from sibling tools like classin_delete_course_student and classin_add_activity_student by specifying the target resource as course rather than activity or deletion.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives, no exclusions, and no context such as prerequisites. It simply states the action without explaining situations where this tool is appropriate or when to prefer a different tool like classin_add_activity_student.

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