Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

ecommerce_uploadAndAttachAProductImageV1

Fetch a raster image from a URL, virus-scan it, and attach it to a product in one call. Set is_thumbnail to make it the primary product image.

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.
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses virus scanning, content validation, CDN storage, and the is_thumbnail behavior. However, it does not mention potential failure modes (e.g., unreachable URL, invalid content) or the alternative object_name path, nor does it describe reversibility or effects on existing images. It is transparent about the core mutation but not exhaustive.

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, directly states the purpose, and front-loads the key action. It avoids unnecessary details and is well-structured, making it easy for an agent to quickly grasp the tool's function.

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 covers the main flow (URL fetch, attach, thumbnail) but omits the object_name alternative entirely. This is a significant gap for agents that have pre-uploaded images. While the schema clarifies this, the description itself is incomplete for a full understanding. No output schema exists, but the description could still mention the return or side effects more fully.

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 description coverage is 100%, with detailed parameter descriptions including the max 15MB, format restrictions, and the either/or relationship between image_url and object_name. The description adds little beyond the schema, mostly restating the is_thumbnail effect. Baseline is 3, and no additional value is provided.

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 clearly states the action: fetch a raster image from a URL and attach it to a product. It specifies the resource (product image) and the scope (single call). It also distinguishes from sibling tools by implying a direct URL-based attachment, contrasting with the separate upload-url tool.

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?

The description implies usage (fetch from URL and attach) but does not explicitly mention when to use this tool versus the sibling upload-url tool. It says 'in a single call' which hints at combining steps, but no clear when-not guidance or explicit alternative is provided. The schema covers object_name, but the description itself lacks that nuance.

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