Skip to main content
Glama
hashcott

Meta Ads MCP Server

by hashcott

Fetch Meta Ads Pagination URL

meta_ads_fetch_pagination_url
Read-onlyIdempotent

Retrieve the next or previous page of results from a Meta Ads API pagination URL. Use this when a response includes paging.next or paging.previous.

Instructions

Fetch the next or previous page of results from a Meta Graph API pagination URL.

Use this tool whenever a Meta Ads tool response contains a paging.next or paging.previous URL. The pagination URL already includes the access token and all necessary parameters.

Args:

  • url (string): The complete pagination URL from response.paging.next or response.paging.previous

Returns: The next/previous page of results in the same format as the original response.

Examples:

  • Use when: response.paging.next exists after calling meta_ads_get_adaccount_insights

  • Use when: response.paging.next exists after calling meta_ads_get_campaigns_by_adaccount

  • Use when: "Get all pages of results automatically"

Note: The pagination URL already contains the access token — do NOT add or modify it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesComplete pagination URL from response.paging.next or response.paging.previous

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hashcott/meta-ads-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server