Skip to main content
Glama

Herofab marketplace image rules

Measure an image from a link against marketplace rules

check_image_url
Read-onlyIdempotent

Fetch a product photo from a public https link and check it against a marketplace's published image rules, for example an Amazon, eBay, Etsy, Shopify, Walmart, TikTok Shop or Google Shopping main image. Herofab reads the real width, height, format and file size from the file, and estimates from the pixels whether the background is pure white (RGB 255), how much of the frame the product fills and whether it touches an edge (cut off). Pixel measurements are estimates; rules that could not be measured are listed under not_checked. Returns the same verdict as check_image_spec plus the measured values, and a link to fix the image when a rule fails. The image is not stored. Do not use it for a product page, a local file or an image behind a login; when only the dimensions are known, use check_image_spec.

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": {
      "platform": "<platform>",
      "image_url": "<image_url>"
    },
    "name": "check_image_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformYesPlatform key, for example amazon, ebay, etsy, shopify, walmart, tiktok-shop, google-shopping (see get_image_requirements).
image_urlYesPublic https link to the image file itself (JPEG, PNG, WebP or GIF are measured; up to 15 MB), not to the product page.

Output Schema

NameRequiredDescriptionDefault
nameYesPlatform name.
passYesTrue when no checked rule fails; see not_checked for what was not checked.
failsYesRules the image breaks.
notesYesWarnings that do not fail the image, such as recommendations and zoom size.
fix_urlYesWhere to fix a failing image; null when nothing fails.
measuredYesWhat Herofab read from the image. width, height, format and file size come from the file; background, product and shadow are estimates from the pixels.
platformYesPlatform key.
guide_urlYesHerofab's guide for the platform.
not_checkedYesRules that could not be checked from the input, with the reason.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered; the description adds genuinely new behavior: what is actually measured (width, height, format, file size) versus estimated (white background, product fill, edge cutoff), that pixel measurements are estimates, that unmeasurable rules surface under not_checked, and that the image is not stored. The only gap is that it does not mention rate limits or failure modes for unreachable/oversized URLs.

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?

Front-loads the core action and the measurement caveat before the return-value note and the do-not-use clause, which is the right ordering. It runs long and repeats the platform examples already enumerated in the schema, costing it a point.

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

Completeness5/5

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

For a two-parameter read-only tool with full schema coverage, rich annotations and an output schema, the description supplies exactly the missing pieces: estimation limits, the not_checked escape hatch, non-storage of the image, and the relationship to check_image_spec's verdict. Nothing an agent needs to call it correctly is absent.

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% and both parameters already carry descriptions including the https-only constraint, size limit, accepted formats and the platform enum. The description reinforces the 'link to the file itself, not the product page' distinction and names a few common platforms, but adds little beyond the schema, so the baseline of 3 applies.

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?

Opens with a specific verb and resource — fetch a product photo from a public https link and check it against a marketplace's published image rules — and immediately scopes it to main-image contexts. It is clearly distinguishable from get_image_requirements (rules lookup) and from check_image_spec (dimensions-only check, named later).

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

Usage Guidelines5/5

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

Gives explicit exclusions ('Do not use it for a product page, a local file or an image behind a login') and an explicit alternative with the selecting condition ('when only the dimensions are known, use check_image_spec'). The agent does not have to infer routing between the three siblings.

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