Skip to main content
Glama

Get icon code

get_icon
Read-onlyIdempotent

Get one icon as an SVG string or as ready-to-paste JSX, Vue or Svelte markup. Free Stroke Rounded icons need no key; premium styles need a Glibiq Pro API key.

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": {
      "name": "<name>"
    },
    "name": "get_icon"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesIcon name exactly as returned by search_icons, e.g. 'shopping-cart' or 'home-solid'.
sizeNoWidth and height in pixels.
colorNoHex colour such as #1F8BFF. Default is currentColor (inherits the text colour).
styleNoOptional: return the same design in another style key (see list_styles).
formatNoOutput format: raw SVG or markup for React (jsx), Vue or Svelte.svg
strokeNoStroke width for outline styles (default 1.5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / color / description
      Previous value: -"Hex colour; default currentColor"New value: +"Hex colour such as #1F8BFF. Default is currentColor (inherits the text colour)."
    • addedInput schema / properties / format / description
      Added value: +"Output format: raw SVG or markup for React (jsx), Vue or Svelte."
    • addedInput schema / properties / name / description
      Added value: +"Icon name exactly as returned by search_icons, e.g. 'shopping-cart' or 'home-solid'."
    • addedInput schema / properties / size / description
      Added value: +"Width and height in pixels."
    • addedInput schema / properties / stroke / description
      Added value: +"Stroke width for outline styles (default 1.5)."
    • changedInput schema / properties / style / description
      Previous value: -"Optional: the same design in another style"New value: +"Optional: return the same design in another style key (see list_styles)."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds meaningful context beyond that: the authentication model (no key for free Stroke Rounded, Pro key for premium styles), which is exactly the kind of behavioral detail annotations cannot express. It stops short of describing failure behavior or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, with what the tool returns front-loaded and the auth constraint second. Nothing is repeated from the title or schema unnecessarily.

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

Completeness4/5

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

For a six-parameter read tool with no output schema, the description covers the return type (markup string in four formats) and the key prerequisite, which is what an agent needs to call it correctly. Minor gaps around invalid-name errors and default behavior for style remain.

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 every parameter is already documented, and the description only echoes the format options and adds that style can swap the design variant. The premium-style hint is a small semantic addition, but the schema does the heavy lifting here.

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 ('Get one icon') and enumerates the return forms (SVG string, JSX, Vue, Svelte markup), which is more precise than the title 'Get icon code'. It implicitly separates itself from search_icons by scoping to a single icon, though it never names the sibling explicitly.

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

Usage Guidelines3/5

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

The description carries a real prerequisite — free Stroke Rounded icons need no key, premium styles need a Glibiq Pro API key — which tells the agent when the call will fail. However, it gives no explicit guidance on when to use this versus search_icons or list_styles, leaving the routing to inference.

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.

Resources