Skip to main content
Glama

新建课程

lexue_create_course

Creates a new course with a supplied name, defaults it to a general course, and returns the new course ID.

Instructions

按用户给出的名称新建课程。平台预设为一般课程。返回新课程编号。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, and openWorld=true, so the write and non-repeatable nature is covered. The description adds one genuinely useful behavioral fact beyond them — the platform presets the new course as a general course (一般课程) — plus the return value. It omits permission requirements, duplicate-name behavior, and whether the course is visible to members immediately.

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 short sentences: action, default behavior, return value — front-loaded with the action and with zero filler. Every sentence carries distinct information an agent needs.

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 one-parameter creation tool with no output schema, the description covers what it creates, the default preset applied, and what is returned, which is close to sufficient. It would be complete with a note on preconditions (auth/enrollment scope) and duplicate handling.

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?

There is a single parameter with 0% description coverage, so the schema only supplies type and length bounds (1–200 chars). The description contributes the meaning that the value is user-supplied, but adds no format, naming convention, or uniqueness semantics. Marginal value over the schema for the one parameter that exists.

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?

"新建课程" gives a specific verb (新建) plus resource (课程), which an agent can cleanly separate from lexue_get_course / lexue_update_course / lexue_delete_activity by name. It stops short of explicitly naming a sibling or a disambiguating scope, so it is clear but not fully sibling-differentiated.

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?

"按用户给出的名称" implies the name must come from the user rather than being invented, which is a mild usage constraint. There is no explicit when-to-use vs. when-not, no mention of prerequisites such as login or permissions, and no statement about what to do if a course with that name already exists.

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