Skip to main content
Glama

remove_lecture_frag

Delete lecture fragments for a subject prefix and owner. Requires subject prefix of at least 9 characters to prevent accidental removal of entire book.

Instructions

删除某 owner 在某 subjectId 前缀下的讲义片段(覆盖录入的「先删」步;打 :9090)。需先 login。

🔴 前缀 LIKE 删除:subject_prefix='901001002001'(课时L4) 会删该课时自身 + 全部子知识点片段—— 连课时级思维导图(kgMindmap)一并删,想保留导图就别用课时前缀,改删到知识点段(或逐个知识点前缀)。 BE 强制 subjectPrefix≥9 位(节级)防误删整册。owner 省略=登录者(admin=uid1 官方库)。 参数: subject_prefix : subjectId 前缀(≥9 位);删该前缀下该 owner 的所有片段 book_id : 教辅套 id owner : 归属 uid;省略=登录者 返回: BE {ok, removed}(removed=删除行数)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerNo
book_idNoCC7S
subject_prefixYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully discloses destructive behavior: deletes fragments and may delete attached mindmap. Includes constraints, return format {ok, removed}, and workflow context (override step). No contradictions.

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?

Description is dense with useful info but well-structured: purpose sentence, warning block, parameter list. Slightly verbose but front-loaded and organized. Could be trimmed but effective.

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

Completeness5/5

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

Covers all aspects: purpose, destructive behavior, constraints, parameter defaults, return format, prerequisite (login). Comprehensive for an agent to use correctly given the complexity and lack of annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so description compensates fully: explains subject_prefix (LIKE delete), book_id (default), owner (omitted=logged in), and return value. Adds meaning beyond schema fields.

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 deletes lecture fragments under a subjectId prefix for an owner. It explains the LIKE delete behavior, effects on kgMindmap, and prefix length constraints, distinguishing it from other tools like save_lecture_frag and delete_questions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use and when-not-to-use guidance: warns against using a lesson-level prefix to retain the mindmap, notes BE forces prefix length >=9, and explains owner default. Does not name alternative tools but gives clear usage constraints.

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/RuntimeAll/teacher-mcp'

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