Skip to main content
Glama

上传课件到云课堂

cloudclass_upload_resource

Upload a local ZIP, HTML file, or folder containing index.html to publish courseware as a teacher or admin; folders are packaged automatically.

Instructions

Upload a local .zip, .html/.htm file, or a folder containing index.html. Folders are zipped automatically. The token account must be a teacher or admin.

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": {
      "source_path": "<source_path>",
      "title": "<title>"
    },
    "name": "cloudclass_upload_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo标签数组,例如 ["农业","地理"]
coverNo封面配色
titleYes资源标题,2–60 字
summaryNo资源简介,200 字以内
categoryNo学科分类
classNameNovisibility=class 时必填
visibilityNopublic 公开;class 仅指定班级
source_pathYes本地绝对路径:zip、html,或包含 index.html 的文件夹

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Adds real behavior beyond the annotations: folders are zipped automatically, and the calling account must be a teacher or admin. That authorization prerequisite and the implicit side effect are not derivable from readOnlyHint/destructiveHint/openWorldHint. It still says nothing about size limits, duplicate-title handling, overwrite behavior, or what the caller gets back after a successful upload.

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; the accepted input formats and the auto-zip behavior come first, with the authorization constraint last. No filler or restated title text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter mutation tool with full schema coverage and no output schema, the description covers what is uploaded, how folders are handled, and who may call it. The remaining omission is post-upload outcome (resource id/URL) and any size or content restrictions, which is minor given the rich schema.

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 100%, so the schema already documents every parameter including source_path formats, visibility, className and the enum values. The description paraphrases the source_path formats that the schema already specifies, adding no new meaning (e.g. allowed archive contents, path constraints on remote hosts). Baseline 3 applies.

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?

States a specific verb (upload) plus the accepted source formats (.zip, .html/.htm, or a folder with index.html), so the agent knows exactly what the tool consumes. It does not distinguish itself from the similar sibling cloudclass_create_html_resource, which is the one real gap.

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?

Implicit guidance only: an agent can infer this is for pushing an existing local artifact while create_html_resource likely creates one from scratch, but the description never says so. It also never states when not to use it or what to do for updates versus new uploads (cloudclass_update_resource exists).

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