Skip to main content
Glama

发布或编辑课程公告

lexue_save_announcement
Destructive

Save a course announcement with its title, body, and optional local attachments; when editing, include the existing title to update the post. The platform may publish it immediately.

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>",
      "body": "<body>"
    },
    "name": "lexue_save_announcement"
  }
}

Input Schema

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

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 known; the description adds the genuinely non-derivable fact that the platform may publish immediately. That explains the destructiveness, but it still does not clarify whether an edit overwrites prior content or what permissions are required.

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 with no filler, front-loading what is saved, then the publish side effect, then the edit-mode requirement. Nothing is repeated from the schema or annotations.

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 non-idempotent, destructive, open-world mutation with no output schema and five parameters at 20% coverage, the description omits what a successful save returns (an id? a URL?), how attachment paths are resolved or rejected, and what error conditions mean. Adequate to attempt a call, not adequate to predict its outcome.

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 only 20% (courseId and files only), so the description must carry weight, and it does explain existingTitle's role and that files are local attachments. However title/body get no clarification beyond their names, and the interaction between existingTitle and create-vs-edit is left implicit.

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 states a specific verb+resource (保存课程公告 / save course announcement) and covers both create and edit modes, with '编辑时给出现有标题' disambiguating the edit case. It never names a sibling such as lexue_list_announcements, so the agent must infer the read-vs-write boundary from the verb alone.

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 one concrete mode rule — when editing, supply existingTitle — which is real guidance for choosing between create and update behavior. It does not say when to prefer this over listing/inspecting announcements first, nor what happens if existingTitle is omitted on an edit or wrong on a create.

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