Skip to main content
Glama

load_preset

Activate a UI preset bundle by ID to load design tokens, component templates, and layout templates. Resolves inheritance chains automatically and must be called before correction or validation tools.

Instructions

Activate a UI preset bundle by ID. Loads all tokens, component templates, and layout templates. Resolves inheritance (extends) chain automatically, deep-merging parent tokens. Must be called before any correction, validation, or generation tools.

Args:

  • preset_id (string): Folder name in /presets (e.g. 'glassmorphic-base', 'client-fintech')

  • force_reload (boolean): Bypass cache and re-read from disk (default: false)

Returns: Preset manifest summary and token count confirmation. Error: "Preset 'x' not found" if the preset directory doesn't exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
preset_idYesPreset folder name in /presets (e.g. 'glassmorphic-base')
force_reloadNoBypass cache and re-read from disk

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/ncsound919/OG-Glass'

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