Check an image against marketplace rules
check_image_specCheck an image's width, height, format and file size, and its declared main-image background and product fill, against a platform's published rules. Returns pass, the failing rules, notes, the rules that need the photo itself, and a link to fix the image.
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>",
"width": "<width>",
"height": "<height>",
"format": "<format>"
},
"name": "check_image_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Image width in pixels. | |
| format | Yes | File format. | |
| height | Yes | Image height in pixels. | |
| platform | Yes | Platform key (see get_image_requirements). | |
| background | No | Main-image background as seen in the photo: pure-white (RGB 255), white (off-white), light (light grey or neutral), coloured (plain colour), busy (scene or texture), transparent. | |
| product_fill | No | Share of the frame the product covers on its longest axis, 0 to 1 (0.85 = 85%). | |
| file_size_bytes | No | File size in bytes; without it the file size limit is not checked. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| pass | Yes | True when no checked rule fails; see not_checked for what was not checked. | |
| fails | Yes | ||
| notes | Yes | ||
| fix_url | Yes | Where to fix a failing image; null when nothing fails. | |
| platform | Yes | ||
| guide_url | Yes | ||
| not_checked | Yes |