Skip to main content
Glama
PipiAds MCP Server

PipiAds MCP Server

Official

search_lib_ads

Read-onlyIdempotent

Search Meta Ad Library ads and filter results by content, platform, status, cost, reach, and active days to find relevant competitor or market ads.

Instructions

Search Meta Ad Library ads. Filter by content, platform, status, cost, reach, active days.

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": "search_lib_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number
countryNoCountry filter
languageNoLanguage filter
order_byNoSort field
per_pageNoResults per page
ad_statusNoAd status filter
data_typeNoData type filter
directionNo"asc" or "desc"
ad_contentNoAd content keyword search
ad_cost_endNoMaximum ad cost
ad_forecastNoAd forecast filter
ad_platformNoAd platform filter
source_ad_idNoSource ad ID
ad_cost_startNoMinimum ad cost
ad_content_md5NoAd content MD5 hash
active_days_endNoMaximum active days
active_days_startNoMinimum active days
ad_started_at_endNoAd start time end
ad_started_at_startNoAd start time start (unix timestamp)
source_advertiser_idNoSource advertiser ID
ad_audience_reach_endNoMaximum audience reach
latest_actived_at_endNoLatest active time end
last_discovered_at_endNoLast discovered time end
ad_audience_reach_startNoMinimum audience reach
first_discovered_at_endNoFirst discovered time end
latest_actived_at_startNoLatest active time start
last_discovered_at_startNoLast discovered time start
first_discovered_at_startNoFirst discovered time start

Output Schema

NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

C2.9/5.0
Behavior2/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered by structured data. The description adds nothing behavioral beyond that: it does not mention pagination defaults, result caps, remote-API latency, or the fact that page/per_page control result windows, so it provides no value beyond the annotations.

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?

Two sentences with zero filler, front-loading the resource and then the filter capabilities. Nothing is redundant or padded, even though the content is thin for a 28-parameter tool.

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

Completeness2/5

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

For a tool with 28 optional parameters, no required fields, and several plausible sibling alternatives, the description is too sparse: it does not explain that no filters returns a general listing, how the range parameters pair, or how this differs from search_ads. An output schema and rich annotations offset some of the burden, but the selection-critical context is still missing.

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

Parameters3/5

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

Schema coverage is 100%, so every one of the 28 parameters is documented in the schema itself, which sets the baseline at 3. The description groups filters into content, platform, status, cost, reach and active days, which is a mild aid for orientation, but it omits the identifier, geo, language, sorting and timestamp families entirely.

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

Purpose4/5

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

The description gives a specific verb and resource ("Search Meta Ad Library ads") plus the dimensions that can be filtered, so the agent knows exactly what the tool retrieves. It does not, however, distinguish this from siblings like search_ads or search_adlibrary_products, which an agent would need in order to pick correctly between ad types and sources.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of when to prefer an alternative such as search_ads or ai_search_image_ads. The filter list only implies that this is a filtered listing search; it never states the conditions that select this tool over its siblings.

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

Deploy Server

Other Tools