Skip to main content
Glama

修改视频锁定状态

classin_update_video_lock_status
Idempotent

Lock or unlock a class video to prevent or allow its deletion. Specify the class, video, and lock status (0 or 1).

Instructions

修改课节视频的锁定状态。锁定后视频不能被删除。

参数:

  • classId: 课节ID

  • videoId: 视频ID

  • isLock: 锁定状态 (0=解锁, 1=锁定)

返回:

  • 成功返回操作结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
isLockYes锁定状态: 0=解锁, 1=锁定
classIdYes课节ID,通过创建课节接口获得
videoIdYes视频ID
response_formatNo输出格式: 'markdown' 人类可读格式 或 'json' 机器可读格式markdown
Behavior4/5

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

Annotations already declare the operation as non-readonly, idempotent, and non-destructive. The description adds the behavioral consequence that locking prevents deletion, which provides meaningful context beyond what annotations convey. No contradictions found.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is brief and organized into parameter and return sections. It includes the key behavioral note without unnecessary fluff, though the parameter list duplicates schema content, which slightly reduces efficiency.

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?

The tool is simple and the description covers the effect, parameters, and a return statement. However, the return description ('操作结果') is vague, and without an output schema, it doesn't explain the result structure or possible error cases. Some prerequisite context (e.g., classId source) is present in the schema but not reinforced.

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%, and each parameter is documented in the input schema. The description restates the same parameter meanings without adding extra semantic detail or format guidance, so it does not compensate further beyond the schema baseline.

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?

The description clearly states the tool modifies the lock status of a class video and explains the consequence (locked videos cannot be deleted). This distinguishes it from sibling tools like classin_delete_class_video, making the purpose specific and unambiguous.

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 description implies when to use the tool (to prevent video deletion) but does not explicitly state when not to use it or mention alternatives. It lacks direct comparison with sibling tools, so the guidance is only implied.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuanlang12/classin-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server