Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

Upload and attach a product image

ecommerce_uploadAndAttachAProductImageV1

Fetch a product image from a URL, scan and validate it, store on CDN, and attach it to a product in one call. Optionally set it as the primary thumbnail.

Instructions

Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product's primary image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
store_idYesThe ID of the store the product belongs to.
image_urlNoPublicly reachable URL of the raster image (JPEG, PNG, GIF or WebP), maximum 15MB. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted. Provide either this or object_name.
product_idYesThe ID of the product to attach the image to.
object_nameNoKey returned by the upload-url endpoint. Provide this instead of image_url to attach an uploaded image.
is_thumbnailNoWhen true, the image becomes the product's thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv1.42.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, the description adds useful behavior: virus scanning, content validation, CDN storage, and the is_thumbnail effect on the primary image. It doesn't mention replacement behavior or response details, but the non-readonly/non-destructive annotations set a baseline.

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?

Three well-structured sentences with the core action front-loaded. There is minor redundancy with the image_url parameter description, but no filler or unnecessary detail.

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

Completeness3/5

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

The description fully covers the URL-fetch flow but omits the object_name path, which is a valid alternative input and is relevant to the sibling upload-URL tool. With no output schema, return behavior is also unspecified, though this is secondary to the tool's purpose.

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 100%, so the schemas already describe all parameters. The description re-states some image_url constraints and is_thumbnail semantics but does not add new meaning beyond what the parameter descriptions 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?

The description states a specific action — fetch a raster image from a URL and attach it to a product in a single call — and gives concrete constraints (formats, size). The 'single call' wording and the mention of the object_name alternative clearly separate it from the upload-URL sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies when to use the tool: when you have a publicly reachable URL and want to attach in one call. However, it never explicitly names the alternative (ecommerce_createAProductImageUploadURLV1) or says when object_name should be chosen over image_url.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hostinger/api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server