Skip to main content
Glama
LinkedIn Ads Library MCP Server

LinkedIn Ads Library MCP Server

search_linkedin_ads

Read-only

Search LinkedIn's Ad Library to find a company's active ads by name, keyword, or company ID, with country and date filters; retrieve creatives, targeting, impressions, and recent ad changes.

Instructions

Search LinkedIn's Ad Library for the ads a company is running. Search by company name, by keyword across ad copy, or by LinkedIn company ID (most precise). Supports country and date-range filters. Returns headline, description, CTA, destination URL, targeting, impressions and media URLs. Company searches also return a changes block: ads launched in the last 7 days and, when the same company was fetched with the same filters 24h+ ago, which ads are new since then and how many dropped out. For complete analysis of visual elements, colors, design, or creative content, you MUST also use analyze_ad_image or analyze_ad_video on the media returned by each ad.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
companyNo
keywordNo
end_dateNo
countriesNo
company_idNo
start_dateNo
pagination_tokenNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "search_linkedin_adsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description genuinely adds non-obvious behavior: the returned field set (headline, CTA, destination URL, targeting, impressions, media URLs) and the delta 'changes' block that only appears when the same company was fetched with the same filters 24h+ ago. It says nothing about pagination behavior via pagination_token or result caps, which is the main remaining behavioral gap for a paged search tool.

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?

Five sentences, front-loaded with the resource and search modes, then return fields, then the changes caveat, then the required follow-up. Every sentence carries information; the only mild redundancy is re-listing return fields already implied by the output 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?

An output schema exists, yet the description usefully previews key return fields and the conditional changes block. Given eight optional parameters and paginated results, the missing piece is how limit and pagination_token interact across pages, but otherwise an agent has enough to call it correctly.

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 0%, so the description must carry parameter meaning, and it only partly does. It explains the intent of company, keyword, company_id, countries and the date-range filters (including a precision ranking), but leaves limit and pagination_token entirely unexplained and gives no format cues for dates or country values.

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?

States a specific verb and resource ('Search LinkedIn's Ad Library for the ads a company is running') and enumerates the three search axes: company name, keyword across ad copy, and LinkedIn company ID. It also names the downstream siblings (analyze_ad_image / analyze_ad_video) needed for creative analysis, so an agent can separate it from detail-fetch and analysis tools.

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?

Gives real selection guidance among its own modes by ranking company_id as 'most precise' and describing keyword as spanning ad copy. It also mandates the follow-up path for visual analysis. It stops short of stating when to use this versus get_linkedin_ad_details (single-ad lookup), so it is clear context without full exclusions.

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