Skip to main content
Glama

Icons8

Get icon SVG

get_icon_svg
Read-only

Get an icon as SVG by its ID - PREFERRED FORMAT for Icons8 icons. SVG scales to any size; a PNG is a fixed-size raster. Needs an Icons8 plan with MCP access, through a sign-in or a personal API key. Each successful call counts as one download of the plan. When the plan's allowance is spent, or the plan has none, the call refuses and returns a free PNG link instead.

An animated icon's SVG is a still frame - Icons8 publishes no animated vector. The result then carries a "note" saying so and an "animation" block with the motion, so no further call is needed.

Args: icon_id: The id from a search_icons result (field icons[].id) ctx: MCP context for API access

Returns: Dictionary containing the SVG content. For an animated icon it also carries a "note" saying the SVG is a still frame and an "animation" block of permanent gif and apng links. On failure, an "error" describing what the Icons8 API said - a rejected key is reported, not returned as an empty icon. Counts toward the paid-download limit: a refusal carries "retry_after_seconds" and a free PNG "url". When the plan's download allowance is spent, or the plan has none, the error says so, "code" is "limit_exhausted" and "url" is again a free PNG: until that allowance changes or renews, get_icon_svg refuses every icon this account has not downloaded before (the Lottie of get_icon_animation spends its own), and get_icon_png_url still works

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

Input Schema

NameRequiredDescriptionDefault
icon_idYesIcon id from the results of search_icons (field icons[].id)

Output Schema

NameRequiredDescriptionDefault
svgNoSVG markup of the icon. Absent when error is set.
urlNoFree 24px PNG link. Set only when the call was refused: by the hourly download limit, by code "limit_exhausted", because the account's plan has no MCP access, or because the account could not be verified.
codeNo"limit_exhausted" when the download allowance of the plan is spent, or the plan has none. error then says what to do.
noteNoSet only for an animated icon: the SVG is a still frame.
errorNoSet only on failure.
animationNoPermanent gif and apng links. Set for an animated icon, and when the download limit refused the call.
retry_after_secondsNoSeconds until the download limit resets. Set only when the limit refused the call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / url / description
      Previous value: -"Free 24px PNG link. Set only when a download limit refused the call: the hourly one, or code \"limit_exhausted\"."New value: +"Free 24px PNG link. Set only when the call was refused: by the hourly download limit, by code \"limit_exhausted\", because the account's plan has no MCP access, or because the account could not be verified."
  2. Changed2 schema fields changed
    • addedOutput schema / properties / code
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "\"limit_exhausted\" when the download allowance of the plan is spent, or the plan has none. error then says what to do.",
      +  "title": "Code"
      +}
    • changedOutput schema / properties / url / description
      Previous value: -"Free 24px PNG link. Set only when the download limit refused the call."New value: +"Free 24px PNG link. Set only when a download limit refused the call: the hourly one, or code \"limit_exhausted\"."
  3. Changed2 schema fields changed
    • addedInput schema / properties / icon_id / description
      Added value: +"Icon id from the results of search_icons (field icons[].id)"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "animation": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Permanent gif and apng links. Set for an animated icon, and when the download limit refused the call.",
      +      "title": "Animation"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Set only on failure.",
      +      "title": "Error"
      +    },
      +    "note": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Set only for an animated icon: the SVG is a still frame.",
      +      "title": "Note"
      +    },
      +    "retry_after_seconds": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Seconds until the download limit resets. Set only when the limit refused the call.",
      +      "title": "Retry After Seconds"
      +    },
      +    "svg": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "SVG markup of the icon. Absent when error is set.",
      +      "title": "Svg"
      +    },
      +    "url": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Free 24px PNG link. Set only when the download limit refused the call.",
      +      "title": "Url"
      +    }
      +  },
      +  "title": "IconSvgResult",
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say readOnlyHint=true and openWorldHint=false; the description adds what actually matters operationally — each success consumes one download, exhaustion produces code 'limit_exhausted' with 'retry_after_seconds' and a free PNG url, and every previously-undownloaded icon is refused until renewal. It also discloses that an animated icon's SVG is a still frame returned with a 'note' and an 'animation' block, preventing a wasted follow-up call.

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

Conciseness3/5

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

The preferred-format verdict is correctly front-loaded, but the quota/refusal behavior is stated twice — once in the body and again in Returns — and the Returns section largely restates what the output schema already encodes. The 'ctx: MCP context' arg line describes something not present in the schema, adding noise.

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 one-parameter read tool with an output schema and safety annotations already present, the description still covers everything an agent needs to call it correctly and interpret a refusal: quota accounting, error vs empty result, animation caveat, and the alternative endpoint that remains usable.

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?

Only one parameter and schema coverage is 100%, so the schema already documents icon_id. The description repeats the same provenance ('The id from a search_icons result (field icons[].id)') without adding syntax, format, or validation detail, so baseline 3 applies.

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 and resource ('Get an icon as SVG by its ID') and immediately distinguishes the format from the raster alternative ('a PNG is a fixed-size raster'), so an agent can separate it from get_icon_png_url and get_icon_animation without opening a schema.

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

Usage Guidelines5/5

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

Explicitly declares SVG the PREFERRED FORMAT, names the prerequisite (an Icons8 plan with MCP access via sign-in or API key), and states the fallback path: on refusal use the returned free PNG, and get_icon_png_url still works. It also scopes the Lottie route by noting get_icon_animation spends its own allowance.

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.