Skip to main content
Glama
revfanc
by revfanc

lanhu_ui_region

Fetches detailed UI element specs including coordinates, styles, and grid/flow layout guidance from a Lanhu design URL.

Instructions

Return exact elements plus flow/flex/grid-first implementation guidance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesLanhu detail URL containing pid and image_id/docId.
clipNoOptional {x,y,width,height} layer clip rectangle.
limitNoLayers written to this result file, 1-100.
queryNoOptional layer name/text search.
cursorNoCursor returned by the previous page.
fieldsNoOptional comma-separated output fields.
profileNocompact, implementation, or raw.implementation
region_idNoOptional top-level region id/index; omit to inspect the full canvas.
crop_imageNoCreate a correctly scaled local image crop.
layer_typesNoOptional exact layer type filter.
visible_onlyNoExclude hidden layers.
force_refreshNoRefresh the design snapshot.
collapse_slicesNoTreat cuts as atomic elements and omit their descendant layers.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description carries full burden. The description only says it 'returns' data, but does not disclose side effects, authorization needs, or other behavioral traits like pagination or caching. For a tool with 13 parameters, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no fluff, but it is too terse. While concise, it sacrifices necessary detail for a complex tool.

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 13 parameters, an output schema, and no annotations, the description should explain the region concept, pagination, and typical usage. Instead, it provides only a high-level hint, leaving significant gaps.

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?

Schema description coverage is 100%, so baseline is 3. The description adds some context ('exact elements', 'implementation guidance') but does not clarify parameter semantics beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Return exact elements plus flow/flex/grid-first implementation guidance,' which gives a general idea but does not clearly specify that this tool retrieves design region details from Lanhu. It lacks a precise verb-resource structure and does not differentiate from the sibling tool lanhu_ui_assets.

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

Usage Guidelines2/5

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

No usage guidance is provided. The description does not indicate when to use this tool versus the sibling lanhu_ui_assets, nor does it mention any context or alternatives. The agent must infer usage from the name alone.

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

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