validate_creative_spec
Check an image or video against a platform placement's required dimensions, aspect ratio, file size cap and accepted file types. Width and height are enough to answer whether a size fits a placement; supply file size and type as well when the file exists, and the result says which checks it could not perform. Returns each violation with its severity and the expected value.
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>",
"format_key": "<format_key>",
"width": "<width>",
"height": "<height>"
},
"name": "validate_creative_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Pixel width of the file or of the planned creative. | |
| height | Yes | Pixel height of the file or of the planned creative. | |
| platform | Yes | Ad platform. One of: google, linkedin, meta, microsoft, telegram, tiktok. | |
| file_bytes | No | File size in bytes. Omit it when the file does not exist yet or its size is unknown; the weight check is then reported as not performed. Never estimate it. | |
| format_key | Yes | Placement format, for example 'feed_1x1' or 'story_9x16'. Call get_platform_specs with section 'image' for the list. | |
| file_extension | No | File type without the dot, for example 'jpg', 'png', 'mp4'. Omit it when unknown; the type check is then reported as not performed. |