Skip to main content
Glama

generate_calc_paper

Generate calculation worksheet PDFs with configurable problem groups, types, and difficulty levels. Optionally produce answer keys.

Instructions

一键生成计算题卷(确定性程序生成非 LLM)→ 题目卷 PDF(口算主场景不出答案卷)。

按 groups 逐组生成(每组一个类型一个多栏区块),约束内置:进退位可控、除法整除/ 有余数分型、分数自动约分/假分数化带分数、全卷跨组去重;题目卷带「姓名/用时/做对」栏。 参数: groups: [{type, count, label?, level?}],type 从 list_calc_types 查(严禁编造)。 title: 卷名(卷面可见,如"口算训练③(10分钟)")。 seed: 随机种子(任意字符串,同串复现同一份卷;空=随机)。 with_group_label: False 时不印组标(整卷混排风格)。🔴 组标卷面只印「一、二」 序号标识、绝不印练习内容名(学生自明,规范 2026-07-19)。 with_answer: True 才附带教师答案卷(🔴 口算卷默认不出,高年级分数/方程需核对时才开)。 fill_rows: 缺省 True = 每组题数向上凑整到栏数倍数(网格每行凑满,故实际题数可能 多于 count);要「填几题出几题」传 False。 返回: {ok, question_url, answer_url?, total, seed};未登录/未知类型 → {ok:false, reason}。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
titleNo口算训练
groupsYes
fill_rowsNo
with_answerNo
with_group_labelNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description adequately covers behavioral details: deterministic seeding, constraint handling (carrying, division, fractions), fill_rows behavior, answer sheet toggle, and group labeling restrictions. It lacks explicit permission or side-effect information, but the generation nature implies safe operation.

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 verbose but structured with bullet points and emojis for readability. It front-loads the core purpose and then details parameters. Some repetition and informal formatting slightly reduce conciseness, but it remains efficient for the complexity.

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 absence of annotations and output schema details, the description covers all necessary aspects: input parameters, return format, constraints, and behavioral expectations. It provides sufficient context for correct invocation, even including a note for a 2026-07-19 specification.

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 provides extensive parameter explanations beyond the schema, including defaults, valid values (e.g., type must be from list_calc_types), and nuanced behaviors (e.g., fill_rows rounding, with_answer default false for oral arithmetic). This fully compensates for the 0% schema 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 generates a calculation paper PDF ('一键生成计算题卷') and specifies it's a deterministic program (not LLM), and distinguishes the default behavior for oral arithmetic (no answer sheet). It includes the output format and usage constraints, making the purpose unambiguous.

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

Usage Guidelines3/5

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

The description includes some usage guidance, such as referencing list_calc_types for valid types and noting default behaviors. However, it does not explicitly differentiate from sibling tools like generate_calc_items or compose_paper, nor does it state prerequisites or when not to use this tool.

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