Skip to main content
Glama
vuluu2k

WebCake Landing MCP

by vuluu2k

get_icon_svg

Read-only

Resolves icon-font names into inline SVG markup via the public Iconify API (https://iconify.design/docs/api/). Accepts Material Symbols refs ("ms:verified"), Font Awesome refs ("fa:chart-line"), Iconify ids ("mdi:home"), or bare names…

Instructions

Resolves icon-font names into inline SVG markup via the public Iconify API (https://iconify.design/docs/api/). Accepts Material Symbols refs ("ms:verified"), Font Awesome refs ("fa:chart-line"), Iconify ids ("mdi:home"), or bare names (treated as Material Symbols); underscores become hyphens, and Material Symbols resolve to the outlined variant with a filled fallback. These are the same ms: / fa: refs that ingest results report in block.icon. Returns { icons: { "": { ok, svg, iconify } } }. In Webcake an icon renders as an SVG mask on a rectangle element: the SVG goes in responsive.desktop.config.svgMask and responsive.mobile.config.svgMask (each breakpoint is read separately), the visible color comes from styles.background (the SVG's own fill is ignored), and the mask is stretched to the box (preserveAspectRatio='none'), so a square box keeps its proportions. No Webcake credentials needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iconsYesIcon references to resolve (1–40), e.g. ["ms:verified", "ms:support_agent", "fa:chart-line"] — typically the block.icon values from an ingest result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds substantial extra context: it is a public API needing no credentials, it normalizes underscores to hyphens, it resolves Material Symbols to the outlined variant with a filled fallback, and it fully describes how the SVG must be plumbed into Webcake (svgMask per breakpoint, color from styles.background, preserveAspectRatio='none'). That is real behavioral disclosure beyond the structured hints.

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 the core action and API reference, then progressive detail on formats, resolution rules, return shape, and Webcake rendering. Every clause carries information, though the Webcake rendering passage is dense enough that the paragraph runs long.

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 single-parameter tool with no output schema, the description compensates by documenting the return shape ({ icons: { '<ref>': { ok, svg, iconify } } }) and the downstream rendering contract. An agent has everything needed to call it and consume the result correctly.

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 coverage is 100%, so the baseline is 3, but the description goes further by defining the transformation semantics of each ref string — prefix handling, underscore-to-hyphen conversion, and bare-name treatment as Material Symbols. It adds meaning the schema example alone does not convey.

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 (resolves) and resource (icon-font names into inline SVG markup) and names the concrete backing service (public Iconify API). It is unmistakable against siblings like search_images or render_preview because it operates on icon refs, not images or pages.

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?

Explains the accepted ref formats ('ms:verified', 'fa:chart-line', 'mdi:home', bare names) and ties them to where the agent will encounter them (block.icon values from an ingest result), which is clear contextual guidance. It stops short of explicitly stating when-not to use it or naming a fallback alternative, so it lands just under full marks.

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