Skip to main content
Glama

create_code_question

Create a programming question with customizable title, description, test cases, and code answer. Configure language, memory, time limits, and answer settings for automated grading.

Instructions

创建编程题

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paper_idYes试卷ID(通过 query_group_tasks 获取)
questionYes编程题。各字段说明: title_raw 题干富文本,建议分行写:题目说明 / 输入格式 / 输出格式 / 样例 description 解析或补充说明,不能放参考代码 program_setting 配置语言、code_answer 参考代码、in_cases 测试输入列表、内存/时间限制
need_parseNotrue 返回纯文本(plain),false 返回原始富文本结构(raw)
need_detailNo是否在返回中包含完整题目内容(选项、答案等),仅需确认成功时设为 false
Behavior1/5

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

No annotations are provided, and the description is only 3 characters, offering no behavioral insights. Important behaviors (e.g., the tool creates a question within a paper, requires program_setting with code_answer and test cases, modifies the paper's question list) are entirely absent from the description, relying solely on the input schema.

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

Conciseness2/5

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

At 3 characters, the description is extremely short, but for a complex tool with many nested parameters and sibling distinctions, this is under-specification. Conciseness should not sacrifice necessary context; a slightly longer description that summarizes key aspects would be more valuable.

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

Completeness2/5

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

Given the high complexity (nested objects, many fields, no output schema), the description is far from complete. It does not mention return values, prerequisites (e.g., existing paper), or the effect on the paper's question list. The schema provides detail but the description fails to provide a holistic overview.

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%, meaning all parameters have detailed descriptions in the schema. The tool description itself adds no additional parameter meaning, so a baseline score of 3 is appropriate. The description does not compensate or enhance understanding beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description '创建编程题' clearly states the action (create) and resource (programming question), but does not distinguish it from other create_*_question tools in the sibling list. A more specific description highlighting unique aspects (e.g., 'Creates a coding question with test cases and program settings') would improve differentiation.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like create_multiple_choice_question or create_fill_blank_question. Sibling tools suggest a context of exam question creation, but no explicit usage context is given.

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/Sav1ouR520/xiaoya-teacher-mcp-server'

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