Skip to main content
Glama
PipiAds MCP Server

PipiAds MCP Server

Official

search_ads

Read-onlyIdempotent

Search TikTok and Facebook ads by keyword, AI creative type, active state, region, engagement, spend, and dates to find and compare relevant ad campaigns.

Instructions

Search TikTok/Facebook ads. Use extend_keywords for text; filter by AI creative type, active state, region, engagement, spend and dates. 1 credit per result.

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_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort: 1=Last found, 2=Created, 3=First found, 4=Plays, 5=Days, 6=Engagement, 7=Like rate, 8=Share rate, 9=Likes, 10=Comments, 11=Shares, 14=Est conversions, 15-20=FB reactions, 21=Spend, 999=Keyword relevance (use after for next page)
afterNoCopy the complete cursor from the previous result. For sort=999 use [last _score, last video_id].
is_andNoCombine keyword items with AND (true) or OR (false, default)
is_appNoFilter: has APP product
is_urlNoURL status: 0=No landing page, 1=Has landing page
regionNoCountry/region codes, e.g. ["US","GB","DE"]
ad_stateNoDelivery state: 1=Active, 0=Stopped
aigc_typeNoAI creative: -1=AI generated, 0=Non-AI, 1=Advertiser labelled, 2=Official AI. Omit for all.
data_typeNoData type filter: 1=Hot Product, 2=Mini Shop Ad, 3=E-commerce, 4=Spark Ads, 5=Game, 6=App, 7=AI, 8=Short Drama
page_sizeNoResults per page, max 50
plat_typeNoPlatform: 0=All, 1=TikTok, 2=Facebook. Omit for all platforms
shop_typeNoE-commerce platform filter, e.g. ["shopify","woocommerce","magento","wix","shoplazza","shopline","squarespace","shopyy"]
sort_typeNoSort order: "desc"(default) or "asc"
is_productNoFilter: has ad product
ad_cost_maxNoMaximum ad spend (USD)
ad_cost_minNoMinimum ad spend (USD)
ad_languageNoAd language filter, e.g. ["en","zh"]
put_day_maxNoMaximum delivery days
put_day_minNoMinimum delivery days
search_typeNoLegacy search type; prefer each item's type in extend_keywords (1 through 12)
current_pageNoPage number, starting from 1
exclude_wordNoExcluded keyword items; wire parameter is exclude_word
formate_typeNoAd format: 1=Video, 2=Image, 3=Carousel
last_time_endNoLast found time end (unix timestamp)
digg_count_maxNoMaximum like count
digg_count_minNoMinimum like count
first_time_endNoFirst found time end (unix timestamp)
play_count_maxNoMaximum play/view count
play_count_minNoMinimum play/view count
create_time_endNoCreation time range end (unix timestamp in seconds)
extend_keywordsNoKeyword search list. Each item has a type and keyword
last_time_startNoLast found time start (unix timestamp)
share_count_maxNoMaximum share count
share_count_minNoMinimum share count
first_time_startNoFirst found time start (unix timestamp)
comment_count_maxNoMaximum comment count
comment_count_minNoMinimum comment count
create_time_startNoCreation time range start (unix timestamp in seconds)

Output Schema

NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this read-only, idempotent, open-world and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral information not present in annotations or schema: billing at 1 credit per result, which materially affects how an agent scopes page_size and filter breadth. It stops short of describing result ordering or pagination behavior, though the schema's sort/after fields largely cover that.

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 tight sentences: purpose first, then the keyword-vs-filter split, then the cost. Every clause carries information and nothing is repeated from the schema.

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

Completeness4/5

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

For a 38-parameter tool with full schema coverage and an output schema, the description covers purpose, the filter surface, the text-search entry point and the credit cost. The main missing piece is comparative positioning against the library/detail siblings, which matters because those names are close enough to be confusable.

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 description coverage is 100% across all 38 parameters, including enums for sort, aigc_type, plat_type and sort_type, so the schema does the heavy lifting and the baseline is 3. The description's filter list (AI creative type, active state, region, engagement, spend, dates) is a loose thematic summary that maps to schema fields rather than adding syntax or format meaning.

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?

Opens with a concrete verb+resource ("Search TikTok/Facebook ads") and names the filter dimensions available, so the agent immediately knows this is an ad-library search across two platforms. It does not differentiate itself from similarly named siblings such as search_lib_ads, so an agent must infer the distinction from the name alone.

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

Usage Guidelines3/5

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

"Use extend_keywords for text" gives a real routing hint between the keyword path and the filter path, which is useful internal guidance. However, there is no when-to-use/when-not-to-use guidance relative to the many other search_* siblings, and no prerequisites or pagination workflow advice beyond the schema.

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