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
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already convey read-only, idempotent, and safe behavior. The description adds valuable context beyond annotations: the URL already contains the access token, and warns not to modify it. It also states the return format matches the original response.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is highly concise and well-structured: a one-line summary, usage guideline, args/returns sections, examples, and a warning note. Every sentence adds value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (1 param, no output schema), the description is complete: it explains the input, output (same format as original), and provides multiple usage examples and a critical security note.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single parameter, providing baseline 3. The description adds meaningful context: the URL includes the access token and all necessary parameters, and explicitly advises not to add or modify the token, which is critical for safe usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool fetches the next or previous page from a Meta Graph API pagination URL, clearly distinguishing it from sibling tools that perform different operations (e.g., getting entities or insights).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance ('Use this tool whenever...') and concrete examples for specific preceding calls. It lacks an explicit when-not-to-use statement, but the sibling context makes it clear this is the only pagination tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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