Skip to main content
Glama

Get icon SVG

get_icon
Read-onlyIdempotent

SVG of one icon in a style, two colours and a stroke weight, and code to save in a project: code "tsx" (default) is a React component (size, className and title props; main colour currentColor so text colour classes work; accent from the CSS variable --icon-accent), "html" an inline SVG snippet, "svg" the file only. format "svg" is a still icon (1-2 filled paths, works in PowerPoint, Figma, web); "anim-svg" plays its motion in browsers with no player or script.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "get_icon"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesIcon id from search_icons (old ids still work)
codeNotsx (default): a React component · html: an inline SVG snippet · svg: the SVG file only
langNoLanguage of the label and licence link (as in search_icons). Default en
modeNoanim-svg only: loop (default), once, or hover
sizeNowidth and height attributes. Default 24
styleNoDefault line
accentNoAccent colour for the duo style, hex like #FFB020
formatNoDefault svg
weightNoStroke weight for line and duo, 0.5-2.5. Default auto: by size when you give one (24 px = 1.75, 48 = 1.25, 128+ = 0.75), else 1.25
primaryNoMain colour, hex like #1E2A4A, or "currentColor"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered; the description adds genuinely new behavior: the main colour is currentColor so text colour classes apply, the accent is sourced from the CSS variable --icon-accent, and anim-svg renders with no player or script. It does not say whether the returned code carries attribution/licence text or what the response envelope looks like.

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?

Purpose is front-loaded in the first clause, and the variant explanations follow in a logical order. It is dense but pays for itself, with modest redundancy where the code and format enums are restated almost verbatim from the schema.

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

Completeness3/5

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

For a 10-parameter tool with no output schema, the description covers the output-shaping parameters well but leaves the return payload implicit (raw SVG text vs. an object with code and file), and says nothing about the lang parameter's effect on the returned label/licence link. Annotations carry the safety profile, so the remaining gaps are not severe, but they are real.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents every parameter, including the weight 'auto' formula and all four enums; much of the description's code/format explanation duplicates that text. The one real addition is the semantics of primary and accent in the tsx output (currentColor and --icon-accent), which the schema does not explain, so it lands just above the baseline rather than well above it.

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?

The description names a specific resource (the SVG of one icon) and enumerates the two output axes it controls — code form (tsx/html/svg) and format (svg/anim-svg) — so an agent can tell it apart from search_icons/match_icons/list_sets, which return ids or matches rather than artwork. The parenthetical details (React component props, PowerPoint/Figma compatibility) make the return artifact concrete.

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?

It gives clear selection guidance between output variants — 'format svg is a still icon (works in PowerPoint, Figma, web)' versus 'anim-svg plays its motion in browsers with no player or script' — which is exactly the decision an agent faces after finding an id. It stops short of stating when not to use this tool or naming a sibling alternative outright (the search_icons dependency lives in the schema, not the description).

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.