Skip to main content
Glama

新建作业

lexue_create_assignment

Create and save a course assignment with title, schedule, description, and specified local attachments; publish it only when explicit publication is requested.

Instructions

新建作业并保存。可上传用户指定的本地附件,只有 publish=true 时才发布。

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": {
      "courseId": "<courseId>",
      "title": "<title>"
    },
    "name": "lexue_create_assignment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueAtNo新乐学页面显示的本地时间 YYYY-MM-DD HH:mm
filesNo
titleYes
publishNo只有用户明确要求发布时才设为 true
courseIdYes新乐学课程编号,例如 lexue_list_courses 返回的 courseId
startsAtNo新乐学页面显示的本地时间 YYYY-MM-DD HH:mm
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the write nature is covered. Beyond that, the description discloses two non-obvious behavioral traits: the assignment is persisted immediately ('并保存'), and it stays unpublished unless publish=true — a key safety fact given openWorldHint. It does not cover failure behavior when a local file path is invalid, which keeps it from a 5.

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?

Two short sentences, front-loaded with the core action before the qualifiers about attachments and publishing. Nothing is padded, though the terseness leaves room that could have been spent on the required fields or return value.

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?

For a 7-parameter mutation tool with no output schema, the description covers the action, file handling, and publish gating, but is silent on the required fields (courseId, title) and on what comes back (e.g., the new assignment's identifier) — information an agent likely needs to chain follow-up calls such as uploading attachments or listing the created assignment.

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 57%, with courseId, dueAt, startsAt, files and publish documented but title and description bare. The description reinforces two of those (user-specified local attachments, publish gating) but adds no syntax, format, or constraint meaning beyond the schema text. A 3 is the appropriate baseline given partial schema coverage doing most of the work.

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?

The description opens with a specific verb+resource ('新建作业并保存' – create and save an assignment), which is unambiguous. It does not name the sibling it contrasts with (lexue_update_assignment), so an agent must infer that this is the creation path rather than the edit path, but the resource itself leaves little doubt.

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 context is implied rather than stated: files may be uploaded from user-specified local paths, and publishing only occurs when publish=true. There is no explicit when-to-use versus lexue_update_assignment or when-not guidance, and no statement that this is the tool to pick for brand-new assignments rather than modifying existing ones.

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