Create an Instant Form (lead form)
ads_lead_form_create[writes · ads:manage scope] Creates a Meta Instant Form on the brand's selected ad account: name, privacyPolicyUrl (https), questions (Meta question objects, e.g. { type: "EMAIL" }, { type: "FULL_NAME" }, or a CUSTOM question with label and options), optional contextCard, thankYou* fields and followUpActionUrl (same fields as the dashboard form). Same builder and limits as the dashboard. One vendor call, never retried; pass idempotencyKey to make repeats safe. Pass agentName and reason. Audited in Ads > Agent activity.
(Wraps POST /api/v2/ads/lead-forms.)
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": {
"agentName": "<agentName>",
"reason": "<reason>",
"name": "<name>",
"privacyPolicyUrl": "<privacyPolicyUrl>",
"questions": "<questions>"
},
"name": "ads_lead_form_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| locale | No | ||
| reason | Yes | Why the agent is doing this. Shown to the owner and kept in the audit trail. | |
| brandId | No | A brand id (GET /api/v2/brands) or "personal"; default: the key owner's active brand. | |
| platform | No | Optional; Meta only. | |
| agentName | Yes | Which agent is acting. Shown to the owner in Ads > Agent activity. | |
| questions | Yes | Meta question objects, e.g. { "type": "EMAIL" }, { "type": "FULL_NAME" }, { "type": "CUSTOM", "label": "…", "options": [{ "key": "a", "value": "A" }] }. | |
| contextCard | No | Optional intro card shown before the questions. | |
| thankYouBody | No | ||
| thankYouTitle | No | ||
| idempotencyKey | No | Optional; 1-255 characters of A-Z a-z 0-9 . _ : -. Repeats with the same key are safe to send. | |
| privacyPolicyUrl | Yes | Absolute https URL. | |
| followUpActionUrl | No | Optional https URL the thank-you button opens. | |
| thankYouButtonText | No | ||
| thankYouButtonType | No | ||
| thankYouWebsiteUrl | No | https URL; required with a VIEW_WEBSITE button. | |
| isOptimizedForQuality | No | ||
| privacyPolicyLinkText | No |