Skip to main content
Glama
andyjin5

蓝湖 Design Schema MCP

by andyjin5

lanhu_get_design_schema

Read-only

Retrieve detailed design schema from Lanhu, including node hierarchy, coordinates, text properties, colors, gradients, shadows, and component status.

Instructions

[主要设计信息源] 获取单张设计图的 Design IR:节点层级、绝对/相对坐标、文字内容与字体、颜色/渐变/圆角/阴影、设计系统组件身份(component 字段,含选中/未选中等状态语义)。坐标是平台中立的 1x 设计逻辑单位,不包含目标端生产布局语义。full 响应过大会自动降级 summary;需要 transform/vector/token 等原始字段时,先用 lanhu_search_design_nodes 定位节点,再用 detail=exact + node_ids 分区读取。exact 会保留命中子树中的隐藏和零尺寸状态节点。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes蓝湖 URL,pid 必需。支持 detailDetach(含 image_id)、stage/product 等格式,例:https://lanhuapp.com/web/#/item/project/detailDetach?tid=xxx&pid=xxx&image_id=xxx
designNo目标设计图:index 数字(lanhu_get_designs 返回的 index 字段)、设计图 id(uuid)或完整名称。URL 里已带 image_id 时可省略。
detailNofull=标准平台中立 IR;summary=层级/几何/文案;exact=在 full 基础上附带原始节点字段,必须配合 node_idsfull
node_idsNo只返回这些节点的子树(配合 summary 定位后分区读取)
Behavior4/5

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

Annotations provide readOnlyHint and openWorldHint. The description adds key behavioral context: auto-degradation for large responses, platform-neutral coordinates, and retention of hidden/zero-size nodes in exact mode. No contradiction.

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 structured and front-loaded with the core purpose. It is slightly verbose but every sentence adds necessary detail for correct usage. Some repetition could be trimmed, but overall efficient.

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

Completeness4/5

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

Despite no output schema, the description explains what the tool returns (IR including nodes, coordinates, etc.), limitations (auto-degradation, platform-neutral), and how to use different detail modes with node_ids. It also relates to sibling tools.

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?

Schema coverage is 100%, baseline 3. The description adds value by explaining detail level purposes, partitioning strategy, and providing URL format examples. It clarifies the design parameter's specification methods (index, uuid, name).

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 precisely states the tool retrieves Design IR, listing specific data types (node hierarchy, coordinates, text, fonts, colors, shadows, etc.). It distinguishes itself as the primary design info source and references sibling tools for other tasks.

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

Usage Guidelines5/5

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

Explicit guidance is given for when to use summary vs full vs exact detail levels, including auto-degradation of full responses. It advises using lanhu_search_design_nodes first for node location, then partitioned reading with exact mode and node_ids.

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/andyjin5/lanhu-schema-mcp'

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