Skip to main content
Glama
mastergo-design

MasterGo Magic MCP

Official

mcp__C2d

Send an HTML file to MasterGo to convert code into a design file, syncing code changes to the design draft.

Instructions

使用此工具将代码文件发送到 MasterGo MCP 服务进行 C2D(代码转设计)处理,将用户代码同步到设计稿。

参数说明:

  • filePath:HTML 文件的完整路径(如 /path/to/file.html),工具会自动读取文件内容并发送给后端。

  • fileId: 不提供 shortLink 时至少需要 fileId。layerId 不是必填,没有就不要传。

  • layerId: 可选。图层 ID(只读取 URL 参数 layer_id)。不传或解析不到则仅按 file 维度同步;pageid/page_id 不会被当作 layerId。

  • shortLink:可选,短链接形式(例如 https://{domain}/goto/xxxx)。 注意事项:只允许使用 URL 中的 layer_id 参数作为 layerId,严禁将 pageid/page_id 等任何页面 ID 当作 layerId。 如果短链接或 URL 中没有解析出 layer_id,则不传 layerId。

工具会读取 filePath 指定文件的内容,并传给后端,附带 fileId 与可选的 layerId。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileIdNo文件 ID(URL 中 file= 或路径中的数字段)。未传 shortLink 时必填。
layerIdNo可选。图层 ID(只读取 URL 参数 layer_id)。不传或解析不到则仅按 file 维度同步;pageid/page_id 不会被当作 layerId。
filePathYesHTML 文件的完整路径,工具会读取文件内容并发送给后端
shortLinkNoShort link (like https://{domain}/goto/LhGgBAK).
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool reads a file and sends it to the backend, and includes parameter constraints. However, it does not mention destructive behavior, idempotency, permissions, rate limits, or error conditions. The transparency is moderate but not exhaustive.

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 well-structured with separate sections for parameter details and a note. It is concise overall, though there is minor redundancy (the tool's purpose is stated both at the beginning and implicitly at the end). A slightly more streamlined version would improve efficiency, but it remains clear and scannable.

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 tool has 4 parameters and no output schema, the description thoroughly covers input semantics but omits any mention of return values, error handling, or what happens after the file is processed. This is a significant gap for an agent to use the tool correctly, as it has no information about expected responses or failure modes.

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?

The input schema provides 100% coverage with descriptions for all parameters. The description adds significant value beyond the schema by explaining the relationship between fileId, shortLink, and layerId, including examples and explicit restrictions (e.g., 'pageid/page_id will not be treated as layerId'). This enriches the agent's understanding of parameter usage.

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's purpose: 'send code files to MasterGo MCP service for C2D processing, synchronizing user code to the design draft.' It uses a specific verb (send/sync) and resource (code to design), and it distinguishes itself from sibling tools like extractSvg and getComponentGenerator by being the only code-to-design tool.

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 provides detailed parameter usage guidelines (e.g., when to provide fileId vs shortLink, restrictions on layerId) but lacks explicit guidance on when to use this tool versus alternative tools. No sibling comparisons or when-not-to-use conditions are mentioned, leaving usage decisions implicit.

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/mastergo-design/mastergo-magic-mcp'

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