Skip to main content
Glama
bcgbsh
by bcgbsh

generate_icon_base64

Render an icon and return it as a base64-encoded PNG string, allowing previews in MCP clients without local file access.

Instructions

Render an icon and return it as a base64-encoded PNG string (no disk write).

Useful for previews inside MCP clients that cannot read local files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo
textNo
shapeNorounded
styleNogradient
shadowNo
bg_colorNo#4F8DFD
fg_colorNo#FFFFFF
bg_color_2No#8E5BFF
font_scaleNo
border_colorNo#FFFFFF
border_widthNo
corner_radiusNo
gradient_angleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It does disclose a key behavioral trait—no disk write—and the output format, which is valuable. However, it does not cover other behavioral aspects such as determinism, errors, or any hidden side effects.

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?

The description is two sentences with no filler. The core action and return format are front-loaded, followed by the practical use case. Every sentence earns its place.

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

Completeness2/5

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

Given 13 parameters, no output schema, and no annotations, the description is not complete enough for confident use. It states the return type and use case, but lacks parameter semantics, error behavior, and explicit routing versus sibling tools.

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

Parameters1/5

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

There are 13 parameters with 0% schema description coverage, and the description adds no parameter-level guidance. It never mentions size, colors, shape, style, or any of the many options, leaving the agent to guess from names and defaults alone.

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 uses a specific verb ('Render') and resource ('an icon'), states the return format as a base64-encoded PNG string, and explicitly notes 'no disk write', which distinguishes it from the sibling generate_icon tool. Even without naming the sibling, the no-disk-write qualifier clearly differentiates its purpose.

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 a clear context for use: 'previews inside MCP clients that cannot read local files.' This tells the agent when this variant is preferable, though it does not explicitly mention alternative tools or when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.