Skip to main content
Glama

修改资源信息

cloudclass_update_resource

Update an existing courseware resource's title, summary, tags, category, cover, or visibility without replacing its uploaded files; use it to revise metadata or sharing settings.

Instructions

Update title, summary, tags, category, cover or visibility of a resource. Does not replace the uploaded files.

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": {
      "resource_id": "<resource_id>"
    },
    "name": "cloudclass_update_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo标签数组,例如 ["农业","地理"]
coverNo封面配色
titleNo资源标题,2–60 字
summaryNo资源简介,200 字以内
categoryNo学科分类
classNameNovisibility=class 时必填
visibilityNopublic 公开;class 仅指定班级
resource_idYes资源 ID,例如 r_xxx

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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, and openWorldHint=true, so the safety profile is structured data. The description adds one genuinely useful behavioral fact, that uploaded files are preserved, but says nothing about permissions, whether fields omitted from the call are left untouched or cleared, or the effect of visibility=class on className.

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 the mutation scope front-loaded and the one non-obvious constraint second; no filler, no repetition.

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 an 8-parameter mutation tool with no output schema, the definition covers fields and the file-preservation caveat but leaves out partial-update semantics and the className/visibility dependency that the schema only hints at. Adequate but with real gaps an agent could stumble on.

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 all 8 parameters (including resource_id, className, and the enum values for cover/category/visibility) are already documented in the schema. The description merely re-lists a subset of field names and omits className and resource_id entirely, adding no format or conditional semantics beyond 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?

The description uses a specific verb ("Update") plus the resource and enumerates the mutable fields (title, summary, tags, category, cover, visibility), so the agent knows exactly what is being changed. It is distinguishable from cloudclass_upload_resource via the explicit "Does not replace the uploaded files" clause, though the sibling is not named.

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?

The only usage signal given is the negative one, "Does not replace the uploaded files," which implicitly routes file replacement to an upload tool. There is no explicit statement of when to choose this over cloudclass_delete_resource or cloudclass_get_resource, and no prerequisites mentioned.

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