Route Meta leads to a pipeline
set_meta_lead_routeChoose which pipeline new Meta lead-ad leads go to. Give page_id alone to set the Page's route (every form on that Page), or page_id and form_id to override one form. pipeline_id null clears the route at that level (a Page falls back to the account default; a form falls back to its Page). Only connected Pages, and only forms that have already sent a lead, can be routed: get both from list_meta_lead_routes. Clearing (pipeline_id null, no form_id) also works for a Page that is no longer connected (stale_pages) and clears that Page's form routes too, since leftover routes would otherwise block deleting the pipeline they name. Existing deals do not move; it applies to leads that arrive from now on.
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": {
"page_id": "<page_id>",
"pipeline_id": "<pipeline_id>"
},
"name": "set_meta_lead_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | No | A form id from list_meta_lead_routes, to override just that form | |
| page_id | Yes | A connected Page id from list_meta_lead_routes | |
| pipeline_id | Yes | Target pipeline id from list_pipeline_stages, or null to clear |