Skip to main content
Glama

create_page

Generate Vue pages for M8 mobile development by describing requirements. Automatically loads specifications, produces code, and validates standards for forms, lists, details, or custom layouts.

Instructions

【推荐使用】一站式 M8 页面生成工具。自动完成:1.加载完整规范 2.生成代码 3.验证规范。用户只需描述页面需求即可,无需手动调用其他工具。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
module_nameYes模块名称(小写下划线格式,如 user_list、order_detail)
page_nameNo页面名称,默认 index
page_typeNo页面类型:form(表单)、list(列表)、detail(详情)、custom(自定义),默认 custom
vue_versionYesVue 版本,必填。请根据项目 package.json 中的 vue 依赖版本填写:2.x.x 填 '2',3.x.x 填 '3'
descriptionYes页面功能描述,如:用户登录页面、商品列表、订单详情等
requirementsNo具体需求描述,如:包含用户名密码输入框、支持下拉刷新分页、显示订单状态等
authorNo作者名称,默认 developer
componentsNo需要使用的组件列表,如 ['em-form', 'em-field', 'em-button']
skip_mockNo是否跳过生成 mock.js,默认 false
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it mentions the three-step automation process (load specs, generate code, validate), it lacks critical behavioral details: whether this creates files/directories, what permissions are needed, whether it overwrites existing files, error handling, or output format. For a complex 9-parameter creation tool with no annotations, this is insufficient transparency.

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 efficiently structured in three sentences: recommendation tagline, automation steps, and user guidance. Each sentence adds value - the first establishes priority, the second explains the automated workflow, the third clarifies the user's role. While concise, it could be slightly more front-loaded with the core purpose.

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

Completeness3/5

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

Given the tool's complexity (9 parameters, creation operation) with no annotations and no output schema, the description is moderately complete. It explains the high-level automation workflow but lacks details about what exactly gets created, where outputs go, error conditions, or success indicators. The 100% schema coverage helps, but for a creation tool, more behavioral context would be beneficial.

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?

The description doesn't mention any parameters directly, but with 100% schema description coverage, the schema already documents all 9 parameters thoroughly with descriptions, enums, defaults, and requirements. The description's focus on the overall automation workflow provides some context for why these parameters matter, but adds minimal specific semantic value beyond what the schema provides.

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's purpose: '一站式 M8 页面生成工具' (one-stop M8 page generation tool) and specifies it '自动完成:1.加载完整规范 2.生成代码 3.验证规范' (automatically completes: 1. loads complete specifications, 2. generates code, 3. validates specifications). It distinguishes from siblings by emphasizing its comprehensive automation approach, though it doesn't explicitly name alternatives.

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 clear usage context with '【推荐使用】' (recommended use) and '用户只需描述页面需求即可,无需手动调用其他工具' (users only need to describe page requirements, no need to manually call other tools). It implies this tool should be used for comprehensive page generation rather than piecemeal approaches, though it doesn't explicitly state when NOT to use it or name specific alternatives among siblings.

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/lipeng9401222/m8-codex-mcp'

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