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. More: get_style_reference({ topic: "media" }).

Input Schema

TableJSON 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.4/5.0
Behavior4/5

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

Annotations already declare the destructive, non-idempotent write profile, so the bar is lower. The description still adds genuinely new context: 'Staged — publish to see it live' discloses a preview/publish workflow not captured by any annotation, and the clear path plus size cap clarify 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?

Front-loaded with the core action, then the source union, format advice, staging note, and reference — every clause earns its place with no redundancy. Multiple short fragments keep it scannable.

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?

Covers the source union, format best-practice, and the staged/publish behavior for an 8-param tool with no output schema and full annotation coverage. The only minor gap is not stating that a new favicon replaces the existing one, though destructiveHint implies it.

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 adds meaning beyond the schema by declaring that exactly ONE source must be supplied among mediaId/imageUrl/svgContent/dataBase64/clear, a mutual-exclusion rule absent from the schema. It also flags dataBase64 as small-icon-only.

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+resource ('Set or clear the site favicon') and, notably, names the two opposite operations it supports. No sibling tool competes for this purpose, so an agent can immediately tell this is the favicon-mutation tool.

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?

Provides operational constraints ('Exactly one source') and a recommended format ('512px square PNG or an SVG'), plus a pointer to get_style_reference for more. It does not explicitly contrast against nearby tools like upload_image, but the usage constraints are clear and actionable.

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