Skip to main content
Glama

Get icon SVG code

get_icon_svg
Read-onlyIdempotent

Returns the full SVG source of one Glyfiq icon as a single text content block. Requires the exact icon name returned by search_icons. Free icons work without a key. Premium icons require a valid license: if the license_key parameter is omitted, the key configured on the server (connector URL or Authorization header) is used automatically. If the icon is not found, the tool returns an error telling you to call search_icons. Without a valid key, a PRO icon returns an error with upgrade information.

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_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact icon name as returned by search_icons
license_keyNoRequired only for PRO icons. Usually set once in the connector URL instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / license_key / description
      Previous value: -"Required for premium icons"New value: +"Required only for PRO icons. Usually set once in the connector URL instead."
    • changedInput schema / properties / name / description
      Previous value: -"Exact icon name"New value: +"Exact icon name as returned by search_icons"
    • addedInput schema / properties / name / maxLength
      Added value: +200
    • addedInput schema / properties / name / minLength
      Added value: +1
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses licensing behavior (free icons need no key; PRO icons require a license), the server-side key fallback when license_key is omitted, and two distinct error paths with what each message says. This is exactly the operational context annotations cannot express.

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?

Front-loaded with the primary behavior, then prerequisites, then licensing, then failure modes, in five tight sentences with no filler. Each sentence carries distinct operational information.

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?

With no output schema, the description compensates by stating the return is one text content block of SVG source, and it covers the only real complexity in this tool: premium licensing and error recovery. Nothing an agent needs to call it correctly is missing.

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 earns more by explaining the license_key resolution order (explicit parameter overrides server-configured key from connector URL or Authorization header) and by reinforcing that name must be an exact search_icons result. That is meaning the schema 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 and resource ("Returns the full SVG source of one Glyfiq icon") and specifies the return shape ("a single text content block"). The singular "one icon" implicitly separates it from the plural sibling get_icons_svg, so an agent can route correctly 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 Guidelines4/5

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

Gives a clear prerequisite chain: the name must be the exact one returned by search_icons, and if the icon is not found the error tells you to call search_icons again. It also explains free vs. premium access conditions. It stops short of naming get_icons_svg as the batch alternative, which is the one remaining routing gap.

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