Skip to main content
Glama

ingest_items

Batch import questions with images, knowledge points, and tags. Automatically upload images to OSS, handle deduplication, and optionally create a paper. Returns batch ID for later retrieval.

Instructions

🔴 统一入库口(七类来源殊途同归):一次调用完成 题+图+知识点关系+打标字段+可选成卷,无需事后手补。

每题依次:图代传 OSS(local_path→ossUrl 并替换题面占位)→ blockJson 格式化 → 录题落库 (kp_id 走 knowledgeIds → 底座自动写 biz_question_knowledge + dim1_kp_id)→ 打标字段 (err/scenario/free_tags → biz_question_ai;why → difficulty_reason;models/new_models → 模型链,批尾串行)。 参数: items: IngestItem[](契约见 get_role_manual;未知字段拒绝,缺 stem 单条 fail 不中断批) subject_root: KG 教材根(数学七上="100";科学="901".."906")——无 kp_id 的题 subject_id 落此根 paper: 可选建卷 {name, category_id, total_score, suggest_time};null=散题不成卷 前置信息原样落库不被覆盖(AC3);同题干重复录入自动去重复用(AC4)。 🔴 双管道来源标记(PRD-O-005 溯源增强):本调用自动生成一个批次号,每题打 import_source="mcp-<角色>"(MCP 机录)+ import_batch_id=该批次号。录完记住返回的 batch_id, 日后 search_questions(batch_id=…) 或 my_recent_uploads() 一键找回。 不带 "mcp-" 前缀的 import_source(main/手工导入/'举一反三'引擎…)= 其他/手工管道。 返回: {ok, batch_id, results:[{num, question_id, created, reason?, warnings?}], paper_id?, stats:{ok,reused,fail,img}, view_url?}。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
paperNo
subject_rootYes

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 carries the burden. It details every step: image upload to OSS, blockJson formatting, question recording, knowledge mapping, labeling, paper creation, unknown field rejection, duplicate detection, and serial execution for new_models. The return values and batch_id usage are fully explained.

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 fairly concise given the complexity, front-loading the main purpose. It uses bullet points and structured sections. However, it could be slightly more succinct without losing information.

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, the absence of annotations, and presence of an output schema, the description covers all behavioral, return, and usage aspects. It references AC3, AC4, and PRD-O-005, and connects to sibling tools like 'search_questions' and 'my_recent_uploads'. No gaps remain.

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

Parameters4/5

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

Although the input schema itself provides rich descriptions for each parameter, the tool description adds value by explaining the workflow context (e.g., image handling order, serial model proposal) and high-level relationships. The 0% schema coverage in context is inconsistent with the provided schema, but the description compensates adequately.

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 it is a unified ingestion endpoint ('统一入库口') that handles questions, images, knowledge points, labeling, and optional paper creation in one call. It distinguishes from sibling tools like 'ingest_question' (singular) and 'compose_paper' by emphasizing batch and combined functionality.

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 explicit context on when to use (for unified ingestion from seven sources) and references 'get_role_manual' for contract details. It mentions duplicate handling and dual pipeline marking, but does not explicitly exclude alternative tools or state when not to use.

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