Skip to main content
Glama

StyleKit

Get a public StyleKit asset

stylekit_get_asset
Read-onlyIdempotent

Retrieve one public asset by its exact kind and id. Source is returned only where the asset's contentLevel and license permit it. Remote templates include their actual file set only when the live source is available; if it is down, the tool returns a structured unavailable error with safe metadata and does not treat a download URL as source code. External and restricted assets expose metadata, license, attribution and source links only.

Args:

  • kind: the namespace returned by stylekit_list_assets.

  • id: the exact identifier within that namespace.

  • includeSource (boolean, default true): include permitted source files/code; false returns metadata and links only.

  • files (array, optional): exact source file paths to include (templates); omit for all files. Unmatched paths are reported as missingFiles.

Returns complete structured JSON and JSON text, preserving the namespace and provenance.

Examples:

  • "show me the pricing template" -> kind: "template", id from stylekit_list_assets.

  • "just the page and styles" -> kind: "template", files: ["app/page.tsx", "app/globals.css"].

  • A full template can return tens of thousands of characters; use includeSource: false or files to keep it small.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesExact asset id within the namespace
kindYesPublic asset namespace
filesNoExact source file paths to include
includeSourceNoInclude permitted source files/code; false returns metadata only

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
dataYes
sourceYes
licenseNo
metadataYes
sourceUrlsYes
attributionNo
capabilitiesYes
codeLanguageNo
dependenciesYes
schemaVersionYes
fallbackReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world behavior, and the description adds substantive context on top: licensing/contentLevel gating of source, the structured unavailable error when a remote source is down, the rule that a download URL is not treated as source code, and missingFiles reporting for unmatched paths. This is behavior an agent cannot infer from the annotations or schema.

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?

Well structured and front-loaded: the retrieval rule comes first, then Args, Returns, and three worked examples. It runs somewhat long and restates the includeSource behavior in two places, but nearly every sentence carries information an agent needs to call the tool correctly.

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?

For a 4-parameter read tool with an output schema, the description covers the retrieval contract, licensing limits, failure mode, and size-control strategy. Since an output schema exists it does not need to detail return values, and its brief note about structured JSON plus provenance is sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes further: it explains that kind is the namespace produced by stylekit_list_assets, that id must be exact within that namespace, that files omitted means all files, and that unmatched paths surface as missingFiles. That error semantics for a parameter is not present in the schema.

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 and resource with its scope qualifier: 'Retrieve one public asset by its exact kind and id.' It also routes the agent to stylekit_list_assets for obtaining the kind/id pair. It does not differentiate from specialized siblings like stylekit_get_style or stylekit_get_style_tokens, which overlap with several of the 18 namespaces in the kind enum.

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

Usage Guidelines4/5

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

Gives concrete when-to-use guidance: use includeSource:false or files to keep responses small, use files for a subset of template sources, and get kind/id from stylekit_list_assets. It never states when this generic tool should be preferred over the narrower sibling getters, so the alternative-selection rule is left implicit.

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.