list_adsets
List ad sets in a Meta ad account, optionally filtered by campaign or status, supporting pagination.
Instructions
List ad sets in the ad account. Optionally filter by campaign or status.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_adsets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Pagination cursor for next page | |
| limit | No | Number of results (default 25) | |
| fields | No | Comma-separated fields to return | |
| status | No | Filter by status: ACTIVE, PAUSED, DELETED, ARCHIVED | |
| account_id | No | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. | |
| campaign_id | No | Filter by campaign ID |