validate_ad_copy
Check drafted ad copy against the hard character limits of one platform, field by field, and report which fields exceed the limit and by how much. Use it on every draft before presenting it, because copy over the limit is rejected when the ad is uploaded, not when it is written.
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>",
"fields": "<fields>"
},
"name": "validate_ad_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Map of field name to the drafted text, for example {"headline": "Same day delivery", "description": "..."}. Call get_platform_specs for the field names a platform accepts. | |
| language | No | Language tag of the copy. Characters are counted as code points. | en |
| platform | Yes | Ad platform. One of: google, linkedin, meta, microsoft, telegram, tiktok. | |
| campaign_type | No | Optional campaign type, for example 'search' or 'performance_max'. Recorded in the result. |