Skip to main content
Glama

Upload website asset

upload_website_asset

Upload an image file (as base64) for the website's logo or favicon, and save it via update_website_settings. Use when a caller has actual image bytes, not a hosted URL.

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": {
      "asset": "<asset>",
      "content_type": "<content_type>",
      "base64_data": "<base64_data>"
    },
    "name": "upload_website_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYes
base64_dataYesBase64-encoded file content (data: URI prefix is stripped if present). Max 5MB decoded.
content_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), and the description adds genuinely new context: the asset is persisted through update_website_settings, so the agent understands this triggers a settings mutation. It omits whether an existing logo/favicon is replaced and what the call returns, which matters given the non-idempotent hint.

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?

Two sentences, zero filler, with the input format and target resources front-loaded before the usage condition. Every clause carries information the agent needs.

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?

For a three-parameter, no-output-schema write tool this is largely sufficient: input encoding, size limit, target assets, and the persistence mechanism are all covered. Remaining gaps are replacement semantics and the response shape, both minor given the annotation set.

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

Parameters3/5

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

Schema coverage is only 33%: base64_data is documented (data URI prefix stripping, 5MB decoded cap), but content_type carries no schema description. The description partially compensates by naming the two asset targets (logo, favicon) and implying image file content, but says nothing about acceptable MIME types or why the format matters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Upload an image file (as base64) for the website's logo or favicon') and names the downstream effect ('save it via update_website_settings'). It is clearly distinguishable from a URL-based upload path, though it does not explicitly contrast with the adjacent upload_organization_logo sibling.

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?

'Use when a caller has actual image bytes, not a hosted URL' gives both a positive condition and an explicit exclusion, which is more than most definitions offer. It does not name an alternative tool for the hosted-URL case, so the routing is implied rather than complete.

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