Skip to main content
Glama

get_ui_template

Read-onlyIdempotent

Retrieve a curated UI template by its search result id after search_ui_templates. For a relevant new page, replacement, substantial redesign, or reusable component, call this before implementation rather than stopping at the search summary. Returns original source files, SHA-256 hashes, pinned upstream revision, dependencies, author, license and Chinese/English integration prompt. Keep the original appearance. Large templates return omitted_files; retrieve each with file set to its exact name to get all sources without truncation. A large file returns next_offset: repeat with file_offset until null and concatenate content. Full required notices may be linked in license_notice_files. Set include_source=false for metadata only.

Input Schema

NameRequiredDescriptionDefault
idYes
fileNoOptional exact source file name from the template manifest; retrieves only this file's content.
languageNoen
file_offsetNoUnicode character offset returned as next_offset; requires file.
include_sourceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already establish the safe read-only/idempotent profile, and the description layers on non-obvious behavior: omitted_files requiring per-file retrieval, next_offset/file_offset pagination with concatenation, license_notice_files, and the include_source=false metadata-only mode. These are real operational traits not derivable from structured fields.

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?

Front-loaded with purpose and usage before mechanics, and every sentence carries actionable content about retrieval behavior. It is dense and runs long, but nothing is filler; minor tightening of the pagination sentences would help.

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

Completeness5/5

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

With no output schema, the description fully carries the return-value burden: source files, SHA-256 hashes, pinned upstream revision, dependencies, author, license, and bilingual integration prompts. It also covers truncation and pagination edge cases, leaving no gap an agent would need to guess at.

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 description coverage is only 40%, so the description must compensate, and it does for three of five params: file ('exact name'), file_offset ('repeat with file_offset until null and concatenate'), and include_source ('metadata only'). The id param's provenance is implied via the reference to search_ui_templates, but language ('zh'/'en' for the integration prompt) is never explained despite being the only enum.

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?

States a specific verb and resource ('Retrieve a curated UI template') plus the keying mechanism ('by its search result id'), which distinguishes it immediately from the sibling search_ui_templates. An agent can tell what this returns without opening the schema.

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?

Explicitly names the triggering situations ('relevant new page, replacement, substantial redesign, or reusable component') and the sequencing rule ('call this before implementation rather than stopping at the search summary'), which routes the agent away from the search tool's terminal state. This is the when-to-use guidance most definitions lack.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources