Skip to main content
Glama

删除课程条目

lexue_delete_activity
Destructive

Delete an assignment, courseware item, or announcement by course, section, and exact title after explicit user confirmation of the target and deletion impact.

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

Input Schema

NameRequiredDescriptionDefault
titleYes
sectionYes
courseIdYes新乐学课程编号,例如 lexue_list_courses 返回的 courseId
confirmedYes用户已明确批准删除这一条目

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 structurally. The description adds the human-confirmation gate and the notion of a targeted, exact-match deletion, though it stays silent on irreversibility, cascading effects on related data, and error behavior on a non-matching title.

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?

Two sentences, no waste: the operand scope is front-loaded and the confirmation prerequisite follows. Nothing could be removed without losing information.

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, 4-parameter tool with no output schema, the description covers what is deleted and the confirmation gate but not what is returned after deletion or how ambiguous/zero matches resolve. Adequate but leaves an agent guessing at edge-case outcomes.

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 50%, so the description must fill holes: it clarifies that the title must match exactly ("精确标题") rather than fuzzily, and that section means the module type, which together cover the one parameter the schema leaves undocumented; section is already self-evident from its enum.

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?

States a specific verb (删除) plus the exact resources covered (作业、课件或公告) and the selection key (课程、模块、精确标题). That makes it unambiguously distinct from the sibling update/create/list tools without needing the schema.

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?

Adds a real precondition — the user must confirm both the target and the deletion impact before invoking — but never states when to choose this over alternatives such as updating an item, nor what to do when the title matches nothing or matches multiple items.

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