Skip to main content
Glama

Icons8

Get illustration PNG link

get_illustration_png_url
Read-only

Get a PNG URL for an illustration - use when SVG is not available to you. NOTE: SVG is preferred where you can get it (use get_illustration_svg).

Sizes: "low" (a small preview), "standard" (a mid-size raster), "hd" (the largest). "low" and "standard" work for everyone; "hd" needs a signed-in account whose plan covers illustrations and MCP access, the same as SVG, unless the illustration has free_distribution: true. The exact pixel dimensions depend on the illustration - read width/height from the response rather than assuming a fixed size.

The URL is presigned and expires in one hour. For a permanent link, use preview.url in a search result: a preview, watermarked unless the hit is free or your plan covers it.

Args: illustration_id: The id from a search_illustrations result (field illustrations[].id) ctx: MCP context for API access size: "low", "standard" (default) or "hd"

Returns: {"url", "width", "height", "expires_in_seconds"}, or {"error"}. "hd" counts toward the paid-download limit: a refusal carries "retry_after_seconds".

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

Input Schema

NameRequiredDescriptionDefault
sizeNostandard
illustration_idYesIllustration id from the results of search_illustrations (field illustrations[].id)

Output Schema

NameRequiredDescriptionDefault
urlNoPresigned download link. Valid for expires_in_seconds. Absent when error is set.
errorNoSet only on failure.
widthNoPixel width of the file.
heightNoPixel height of the file.
expires_in_secondsNoSeconds the url stays valid. One hour.
retry_after_secondsNoSeconds until the download limit resets: up to an hour, or up to 7 days when the weekly limit refused. Set only when the limit refused the call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / retry_after_seconds / description
      Previous value: -"Seconds until the download limit resets. Set only when the limit refused the call."New value: +"Seconds until the download limit resets: up to an hour, or up to 7 days when the weekly limit refused. Set only when the limit refused the call."
  2. Changed2 schema fields changed
    • addedInput schema / properties / illustration_id / description
      Added value: +"Illustration id from the results of search_illustrations (field illustrations[].id)"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Set only on failure.",
      +      "title": "Error"
      +    },
      +    "expires_in_seconds": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Seconds the url stays valid. One hour.",
      +      "title": "Expires In Seconds"
      +    },
      +    "height": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Pixel height of the file.",
      +      "title": "Height"
      +    },
      +    "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"
      +    },
      +    "url": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Presigned download link. Valid for expires_in_seconds. Absent when error is set.",
      +      "title": "Url"
      +    },
      +    "width": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Pixel width of the file.",
      +      "title": "Width"
      +    }
      +  },
      +  "title": "IllustrationDownloadResult",
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description adds substantial context: per-tier access gating, that "hd" consumes the paid-download limit, that refusals return retry_after_seconds, and that the presigned URL expires in one hour. The main gap is that the one-hour expiry is stated but not the consequence of a stale URL, though that is minor.

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 routing rule and preference note before the detail, and written in short scannable lines. The Args/Returns blocks partly restate the schema and output schema, which is slight redundancy, but the sizing and entitlement content justifies the length.

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 two-parameter read tool, everything an agent needs is present: routing, size semantics, entitlement gating, expiry, quota behavior, and the caveat to read width/height from the response rather than assume fixed dimensions. Return fields are enumerated even though an output schema exists.

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

Parameters5/5

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

Schema coverage is only 50% and the `size` property has no enum or description in the schema, so the description carries the burden and does: it names all three values, flags "standard" as the default, explains what each means (small preview / mid-size raster / largest), and states the entitlement conditions for "hd". This is meaning the schema does not provide.

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?

Opens with a specific verb and resource ("Get a PNG URL for an illustration") and immediately distinguishes itself from a named sibling by stating it is the fallback when SVG is unavailable. An agent can route between get_illustration_png_url and get_illustration_svg from the first two lines alone.

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 states when to use this tool (SVG not available) and which alternative to prefer (get_illustration_svg), plus a second routing rule: for a permanent link use `preview.url` from a search result instead. Prerequisites for the "hd" tier (signed-in account, plan covering illustrations and MCP access, free_distribution escape hatch) are spelled out.

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.