Skip to main content
Glama

Set favicon

set_favicon
Destructive

Set or clear the site favicon. Exactly one source: mediaId, imageUrl, svgContent (user-supplied SVG), dataBase64 (small icons, ~3MB cap), or clear: true. Best: a 512px square PNG or an SVG. Staged — publish to see it live. HTML-first: site.json. More: get_style_reference({ topic: "media" }).

Input Schema

NameRequiredDescriptionDefault
idNoSite id.
clearNoRemove the favicon; other fields ignored.
mediaIdNoExisting media id (no upload).
filenameNoFilename hint.
imageUrlNoPublic URL to upload.
mimeTypeNoFor dataBase64 (default image/png).
dataBase64NoBase64 or data URL. Small icons only (~3MB cap).
svgContentNoRaw SVG the user supplied (starts with <svg or <?xml). Never fabricate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Site id. Pass it on every call."New value: +"Site id."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the description's job is to add operational context — and it does: changes are staged and require publish_site to go live, dataBase64 is capped at ~3MB, and svgContent must be user-supplied ('Never fabricate'). It doesn't say what happens if two sources are supplied or whether an existing favicon is replaced vs. rejected, leaving a small gap.

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?

Six dense sentences with the operation and the source-selection rule front-loaded, and the workflow hints (staged, publish) at the end where they belong. A couple of fragments ('HTML-first: site.json') are cryptic enough to cost a point on readability, but nothing is redundant.

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?

With eight parameters, no output schema, and a destructive annotation, the description supplies the essential decision logic: which source to use, format recommendations, size limits, and the staging/publish workflow. Remaining unknowns — return value and error behavior on conflicting sources — are secondary for a tool whose safety profile is already declared.

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; the description earns extra by framing five of the eight parameters as a mutually exclusive source set rather than independent options, which the flat schema can't express. It also adds quality guidance ('512px square PNG or an SVG') that no parameter description conveys.

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 opens with a specific verb+resource pairing ('Set or clear the site favicon') and immediately scopes it to a single site's favicon, which no sibling tool touches. The dual set/clear capability is stated up front, so an agent can distinguish it from upload_image or upload_file without opening the 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?

It gives a hard selection rule ('Exactly one source') and enumerates all five mutually exclusive branches, so the agent knows which parameter combinations are legal. It also points to get_style_reference({ topic: "media" }) for further guidance and notes mediaId means 'no upload'. It stops short of saying when to prefer this over uploading via upload_image first, but the context is otherwise clear.

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