Skip to main content
Glama
lanhu-context-mcp

lanhu-context-mcp

by saltand

get_design_context

Analyze a Lanhu design URL to extract HTML/CSS specs, image download mappings, design tokens, and a preview screenshot for implementation context.

Instructions

Analyze a Lanhu design and return HTML+CSS design spec, image download mappings, design tokens, and a preview screenshot.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "get_design_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesLanhu design detail URL containing tid, pid (project_id), and image_id parameters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does well on the output side by naming exactly what comes back, but it never states that this is a non-mutating read, whether authentication or a Lanhu session is required, whether the analysis is slow or costly, or whether results are cached — all of which matter for an 'Analyze' operation.

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?

One sentence, front-loaded with the action and scoped by the return payload. No filler, no repetition of the title or parameter names.

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?

There is no output schema, so enumerating the return artifacts in prose is exactly the right compensation and it is done here. What remains missing is operational context — auth requirements, expected latency for an analysis call, and whether large designs are truncated — which would matter for planning a call sequence.

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?

There is a single parameter and schema coverage is 100%, with the schema already explaining that the URL must contain tid, pid, and image_id. The description adds nothing about the URL format, validity requirements, or what happens if those query parameters are missing, so the baseline 3 is appropriate.

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?

States a specific verb ('Analyze') and resource ('a Lanhu design') and enumerates the four artifacts returned (HTML+CSS spec, image mappings, tokens, screenshot). An agent can distinguish this from the sibling list_project_designs by the fact that this consumes a single design URL and produces a spec, though the contrast is never made explicit.

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?

There is no when-to-use guidance, no prerequisites, and no named alternative. The only implicit cue is that the tool takes a single design detail URL, so the agent must infer that it should call list_project_designs first to obtain one; the definition says nothing about that ordering or about when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools