Glassmorphism CSS Snippet Builder — API & MCP | Elysia ToolsDesign
Glassmorphism CSS Snippet Builder
End-to-end frosted-glass / neumorphism CSS snippet generator: blur+saturate backdrop, tint, border, layered shadows, grain overlay, @supports fallback, -webkit- prefix, Tailwind mapping and live preview.
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'http://127.0.0.1:3003/en/api/tools/glassmorphism-css-snippet-builder' \
-H 'Content-Type: application/json' \
-d '{"style":"glass","blurPx":12,"saturatePct":160,"tintColor":"#ffffff","tintAlpha":0.15,"radiusPx":16,"borderWidth":1,"borderAlpha":0.25,"shadowAlpha":0.12,"topHighlight":true,"noiseOverlay":true,"includeFallback":true,"neuBgColor":"#e0e5ec","neuDistance":9,"neuPressed":false,"neuDark":false}'
API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST http://127.0.0.1:3003/en/api/tools/glassmorphism-css-snippet-builder
Parameters
| Name | Type | Required | Description |
|---|
| style | select | No | — |
| blurPx | number | No | — |
| saturatePct | number | No | — |
| tintColor | color | No | — |
| tintAlpha | number | No | — |
| radiusPx |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-glassmorphism-css-snippet-builder": {
"name": "glassmorphism-css-snippet-builder",
"description": "End-to-end frosted-glass / neumorphism CSS snippet generator: blur+saturate backdrop, tint, border, layered shadows, grain overlay, @supports fallback, -webkit- prefix, Tailwind mapping and live preview.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=glassmorphism-css-snippet-builder",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}
Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "glassmorphism-css-snippet-builder",
"arguments": {
"style": "glass",
"blurPx": 12,
"saturatePct": 160,
"tintColor": "#ffffff",
"tintAlpha": 0.15,
"radiusPx": 16,
"borderWidth": 1,
"borderAlpha": 0.25,
"shadowAlpha": 0.12,
"topHighlight": true,
"noiseOverlay": true,
"includeFallback": true,
"neuBgColor": "#e0e5ec",
"neuDistance": 9,
"neuPressed": false,
"neuDark": false
}
}
}
| includeFallback | checkbox | No | — |
Response format
HTML result
JSON
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).