Skip to main content
Glama

上传参考资料课件

lexue_upload_courseware

Add selected local files to a course's reference materials by course ID and title; set publish to true only when the materials should be published.

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>",
      "files": "<files>"
    },
    "name": "lexue_upload_courseware"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=true, so safety is covered. The description adds one genuinely useful behavior beyond them: content is only published when publish=true, implying the default is an unpublished/draft state. It says nothing about duplicate handling, upload limits, or permission requirements.

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 short sentences with zero filler; the core action is front-loaded and the publish condition follows immediately. Every sentence earns its place.

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 5-parameter mutation tool with 20% schema coverage and no output schema, the description covers the essential publish behavior but leaves title/description semantics and the return value (uploaded courseware identifiers or failure modes) unexplained. It is minimally adequate rather than complete.

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 coverage is only 20%, so the description must compensate, and it partially does: it clarifies the semantics of files (local paths the user has already specified) and of publish (only true publishes). It adds no meaning for title or description, and does not explain the interaction between the two required and optional fields.

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 gives a specific verb plus resource: add user-specified local files to a course's reference materials (参考资料). That is clearly distinct from siblings like lexue_list_courseware and lexue_download_attachment. It does not explicitly name an alternative upload/update path, so it stops short of a 5.

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 files must already be chosen by the user, which is a real usage constraint, and the publish clause tells the agent how to control visibility. There is no explicit when-to-use/when-not guidance versus sibling tools such as lexue_list_courseware or any courseware-modification tool, so usage is only implied.

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