Skip to main content
Glama

render_shuzimi_figure

Renders PNG images of vertical arithmetic puzzles (e.g., 6?37+3??=7183) where '?' marks a box. Supports multiple puzzles and direct OSS upload for embedding in questions.

Instructions

数字谜竖式图生成器:按结构化 puzzles 确定性画竖式 PNG('?'=待填□方框),可直传 OSS。

🔴 结构规范:puzzles=1~4 个竖式横向并排,每个 {label?, rows:[{op,cells}...]}; cells 一字符一格(数字/汉字均可),'?'=□;op=+ - × ÷ 或空;op="HR"=横线行。 例(6□37+3□□=7183):rows=[{"op":"","cells":"6?37"},{"op":"+","cells":"3??"}, {"op":"HR"},{"op":"","cells":"7183"}]。 参数: upload=True 则直传 OSS(需先 login),False 只落本地;out_name 自定义文件名(可空)。 返回: {ok, local_path, width, height, oss_url?, asset_id?}。 产物用法: oss_url 塞 blockJson 图块(biz_question_block)或 ingest_question.images; 答案版把 '?' 换成实际字符再调一次。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uploadNo
puzzlesYes
out_nameNo

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 carries full responsibility. It discloses deterministic generation, OSS upload behavior with login requirement, and return format. However, it does not cover error handling or rate limits, leaving some behavioral gaps.

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 clear sections (purpose, structure spec, example, parameters, return, usage). Every sentence adds value, and the most critical information is front-loaded. No unnecessary content.

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 of the tool, the description covers input structure (puzzles with rows, op, cells), parameters, output fields, and usage context (blockJson, ingest). It also includes edge cases like 'HR' for horizontal lines and answer version handling. No output schema is provided, but the description compensates.

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?

Schema description coverage is 0% for top-level parameters, but the description thoroughly explains each parameter, including upload's OSS dependency and out_name's custom filename, and provides a complete example for puzzles. This compensates fully for the lack of schema descriptions.

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 tool generates PNG figures for 'shuzimi' puzzles with specific structural rules. It uses a specific verb ('render') and resource ('shuzimi figure'), but does not explicitly differentiate from sibling tools like compose_variant_figure or render_prep_pack.

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 implies usage by mentioning how to use the output (e.g., oss_url for blockJson) and that the answer version requires replacing '?' and calling again. However, it does not explicitly state when to use this tool versus alternatives or provide exclusion criteria.

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