Turn a Lanhu design into context for AI to generate code and recreate pages
Single tool 'get_design_context' has a clear verb-noun name and basic schema with two parameters (fileId, pageId). However, the description is minimal (27 chars), parameter descriptions are generic, and there is no documented output schema. The tool lacks error handling guidance, pagination support for potentially large design contexts, and field-level documentation. No evidence of idempotency guarantees or recovery patterns. Naming is acceptable but descriptions fall well below the 50-200 char LLM-optimized baseline for A-grade tools.
Get design context from Lanhu design file
Tool description is only 27 characters ('Get design context from Lanhu design file'). LLM-optimized descriptions should be 50-200 chars and explain WHAT, WHEN, and any prerequisites. Current description lacks context for tool selection.
Parameter descriptions are minimal. 'fileId' is described as 'The Lanhu design file ID' and 'pageId' as 'Optional page ID within the design file'. No format constraints, examples of valid IDs, or guidance on how to obtain them. LLMs cannot infer parameter semantics from bare names.
No documented output schema. The tool returns design context but the response structure is not specified. LLMs cannot plan downstream operations or extract required fields without knowing what fields are returned.
No error handling or recovery guidance. If a fileId is invalid or a pageId does not exist, the tool provides no actionable error message or suggestions for the LLM to self-correct.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 41 | 2026-07-28+ | v2 |
No pagination or result-limiting strategy documented. If design contexts are large or contain many pages, the tool may return unbounded data, exhausting context windows. No limit parameter or cursor-based pagination visible.