Skip to main content
Glama

get_lecture_content

Retrieve the extracted lecture text for a knowledge point. Use the plain text to understand the teaching approach and generate similar exam questions.

Instructions

读某知识点/课次的讲义正文(🔴 据讲义出题的原料入口)→ :9090 GET /teacher/kg/lecture?subjectId=。返回 {ok, subject_id, text, example_qids, ...}。

🔴 text = docJson(Tiptap)递归抽出的纯讲解正文;例题只是 kgExample(qid) 引用——正文里以 【例题 qid=...】 占位、真题面不在讲义片段里。要看例题题面 → 用返回的 example_qids 调 get_question(qids)。据 text 理解知识点讲法后,agent 自己出同源题。 参数: subject_id : 知识点/课次的 biz_subject id(get_plan_detail.kgNodeIds / resolve_kg 来)。 🔴 讲义按前缀树序汇聚:传课时节点会拿到其下片段拼成的整篇。 book_id : 教材/书 id(空=默认书)。 owner : 指定讲义作者 owner(字符串 userId);空=默认视图(我的>本部门管理员>官方兜底)。 返回: {ok, subject_id, node, book_id, owner, has_content, text, example_qids:[qid str]}。 🔴 has_content=False / text="" = 该知识点无讲义资产(空态,agent 应降级为凭 KG + 题库出题)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerNo
book_idNo
subject_idYes

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 behavior: text extraction method, placeholder format for examples, aggregation of fragments for lesson nodes, empty state handling, and owner view priority. 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.

Conciseness5/5

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

The description is well-structured with bullet points, warnings highlighted, and key information front-loaded. Every sentence serves a purpose; no fluff.

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?

Given the complexity, the description is complete: covers purpose, parameter usage, return fields, edge cases (empty content), and follow-up actions. Implicit output schema in text is sufficient.

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?

Despite 0% schema description coverage, the tool description provides extensive semantics for all three parameters: subject_id source and aggregation, book_id default, owner fallback logic, and expected values. Adds significant value beyond the bare schema.

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 retrieves lecture content for a knowledge point/lesson, explicitly positioning it as the raw material for generating questions. It distinguishes from sibling tools like save_lecture_frag by focusing on reading, and references get_question for follow-up.

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 guidance on how to obtain subject_id via other tools, explains the behavior for different parameter values (e.g., empty book_id, owner fallback), and instructs the agent to degrade to KG + question bank when has_content is false. Lacks explicit contrast with all siblings but covers essential usage.

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