Skip to main content
Glama

Groundsocial

Search the LinkedIn Ad Library

linkedin_ads_search
Read-onlyIdempotent

LinkedIn Ad Library search by company, advertiser, keyword, country and dates, paginated.

Ads in LinkedIn’s public Ad Library, newest first, 24 a page, by company_id (from linkedin_company_get or linkedin_search_companies), advertiser name, keyword or payer, optionally limited to countries (ISO codes, comma-separated) and a date_option or a start_date/end_date window. Pass after for the next page. Each card has ad_id for linkedin_ad_get (impressions, targeting, who paid).

Cost: 5 credits per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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

Input Schema

NameRequiredDescriptionDefault
afterNoCursor: the previous page’s `after`, with the same filters.
payerNoWho paid for the ad.
keywordNoWords in the ad.
end_dateNoAds shown on or before (YYYY-MM-DD).
countriesNoISO 3166 alpha-2 codes, comma-separated, e.g. US,GB.
advertiserNoAdvertiser name, as LinkedIn’s own advertiser box takes it.
company_idNoNumeric company ids, comma-separated (up to 10).
start_dateNoAds shown on or after (YYYY-MM-DD); with end_date.
date_optionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, it discloses cost (5 credits per call, auto-refunded on failure), page size (24), sort order (newest first), the pagination cursor mechanism, and that responses carry cost_credits and credits_remaining. That is exactly the operational context annotations cannot express.

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

Conciseness4/5

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

Purpose and scope are front-loaded in the first clause, followed by filter semantics, pagination, and cost in a logical order. It is dense but nearly every clause carries information; the cost/credits sentence at the end could be trimmed slightly.

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 9-parameter, zero-required search tool with no output schema, it covers pagination, cost, cross-tool references, and result fields an agent will read (ad_id, cost_credits). The one omission is whether at least one filter must be supplied or what an unfiltered call returns, which matters given no required parameters.

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 89%, so the baseline is 3; the description earns above that by clarifying the date controls are alternatives ('a date_option or a start_date/end_date window'), restating the comma-separated ISO country format, and explaining that `after` must reuse the same filters. It adds little on `payer`/`keyword` beyond the schema, so it is not a 5.

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 opens with a specific verb+resource ('LinkedIn Ad Library search') and enumerates the filter axes (company, advertiser, keyword, country, dates). It names the sibling tools that supply company_id (linkedin_company_get, linkedin_search_companies) and the follow-up tool (linkedin_ad_get), so an agent can place it in the workflow without opening a schema.

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?

It gives clear routing guidance: where company_id comes from, that `after` continues the same query with the same filters, and that ad_id feeds linkedin_ad_get for impressions/targeting/payer. It does not state when to prefer this over a non-LinkedIn ad-library sibling, but the context is otherwise explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.