Skip to main content
Glama
DC911360

lanhu-mcp-server

by DC911360

lanhu_get_design_document

Extracts complete design document data with layer tree, coordinates, styles, and design tokens to enable automated code generation for mobile and web platforms.

Instructions

获取设计稿的完整精确结构化数据。返回图层树(绝对坐标@1x、全量样式fill/border/shadow/typography)、Design Tokens。供 iOS/Android/Flutter/Web/H5 代码生成器使用。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageIdYes设计稿 image_id
projectIdNo项目 UUID
Behavior3/5

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

No annotations are provided, so the description must cover behavioral traits. It describes the output (layer tree, tokens) but does not disclose any side effects, error conditions, or performance characteristics. For a read-only data retrieval tool, this is adequate but not comprehensive.

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 a single concise sentence that front-loads the purpose, then lists the key outputs and target consumers. Every part adds value without redundancy.

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 no output schema and no annotations, the description could be more complete regarding the structure of returned data. It mentions layers and tokens but lacks detail on hierarchy or format. However, the intended audience (code generators) likely understands the format, so it meets basic needs.

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?

Both parameters have descriptions in the schema (imageId and projectId). The tool description adds no extra semantic context about parameters beyond what the schema already provides. With 100% schema coverage, the baseline score of 3 is appropriate.

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 returns complete structured data of design documents, including layer tree with absolute coordinates and styles, plus Design Tokens. It explicitly mentions use for code generators, distinguishing it from siblings that focus on specific aspects like tokens or annotations.

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 implies usage for code generation and retrieving full design data, but does not explicitly contrast with sibling tools or specify when not to use it. Given the sibling list includes tools for annotations, tokens, and design details, the context is clear enough for an experienced agent to infer appropriate usage.

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/DC911360/lanhu-mcp-server'

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