Skip to main content
Glama

编辑或发布作业

lexue_update_assignment
Destructive

Edit an assignment’s fields, times, or attachments by locating it with the exact title in a course; set publish=true only when publishing is explicitly 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>",
      "changes": "<changes>"
    },
    "name": "lexue_update_assignment"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
changesYes
courseIdYes新乐学课程编号,例如 lexue_list_courses 返回的 courseId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the safety profile is covered; the description adds real context by revealing that assignments are identified by exact title match and that publishing is gated behind an explicit publish=true flag. It stops short of saying whether a provided files list replaces or appends to existing attachments, or how ambiguous titles are handled.

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 tight sentences, front-loaded with the identification method before the publish caveat, with no redundant restatement of the title or tool name. Slightly lean for a destructive nested-update tool, but nothing is wasted.

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 destructive, non-idempotent mutation with a nested changes object, no output schema and 33% schema coverage, the definition leaves important gaps: what omitted fields do (partial vs full replace), attachment replacement behavior, and outcome when the exact title matches nothing or multiple assignments.

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?

Schema coverage is only 33%, so the description has to compensate, and it does clarify the most ambiguous point: the top-level title is the exact-match lookup key for locating the assignment, distinct from the editable changes.title. It also reinforces the publish flag semantics already noted in the schema.

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?

"按精确标题定位作业,编辑字段或附件" names a specific verb (edit fields/attachments) and resource (assignment), plus the publish sub-operation. An agent can tell it is an update tool rather than lexue_create_assignment, though no sibling is named explicitly.

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?

It gives a concrete precondition for the risky path ("发布需要明确提供 publish=true"), which is useful routing guidance. However, it never states when to prefer this over lexue_create_assignment or lexue_update_course, nor what to do if an assignment with that exact title does not exist.

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