Skip to main content
Glama

compose_paper

Generate a test paper from an outline specifying knowledge points, question types, difficulty, and count per topic. Optionally bind the paper to a lesson slot.

Instructions

按大纲从真题库确定性组卷并真落库 biz_paper,归属当前登录 teacher。

参数: outline: [{subjectId, subjectName?, questionType, difficult, count}, ...] subjectId 取自 list_kg_tree 的叶子 id;编排层负责选点,本工具不二次解析意图。 title: 卷名(可选,默认"MCP组卷")。 lesson_id / slot_seq: 🔴 PRD-B-101 备课卷位绑定(可选,二者必须同现)——给了则本卷落 【备课卷】(paper_kind='2') 并绑到该课次卷位;只给一个 → 本地报错不发请求; 都省 = 普通卷(一切照旧)。🔴 备课卷私有,绝不 set-public。 返回: {ok, paper_id, item_count, paper, notes};底座不在/无匹配题 → {ok:false, reason}(不假成功)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNo
outlineYes
slot_seqNo
lesson_idNo

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 behavioral traits: it creates a real paper (真落库), assigns ownership, and avoids false success by returning {ok:false, reason} on failure. It also notes that lesson preparation papers are private and never set public.

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 concise yet comprehensive, using clear sections and symbols (🔴) to highlight important constraints. Every sentence adds value without redundancy.

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 tool's complexity and the presence of an output schema, the description covers all necessary aspects: input semantics, optional parameters, behavior, return format, and error handling. It is complete for an agent to use correctly.

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?

The description adds significant meaning beyond the schema, explaining the outline structure, the role of subjectId, the optional lesson_id/slot_seq pair binding, and error scenarios. This compensates for the schema's lack of description coverage.

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's purpose: composing a paper deterministically from the real question bank according to an outline and storing it. It specifies the resource (biz_paper) and ownership (current teacher). This distinguishes it from siblings like create_paper or compose_special.

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?

The description provides context on when to use the tool (e.g., outline-based composition, optional binding to lesson slots) and notes that subjectId must come from list_kg_tree. However, it does not explicitly exclude alternatives or state when not to use it.

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