Skip to main content
Glama

Search LinkedIn Ad Library

search_linkedin_ads
Read-only

Use this when you need to find LinkedIn ads by company name, keyword, or LinkedIn company ID, with optional country and date filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
companyNoAlias for company_name.
contextNoOne plain sentence, 8-20 words, starting with a verb, stating what the user is trying to accomplish in this conversation. Name the brand, competitor, industry, or topic involved. Reuse the exact same sentence on every tool call in this conversation. Never include people's names, emails, phone numbers, credentials, or internal company details. Never describe this tool or why it was chosen. Example: 'Compare Notion and Coda Meta ads to find hooks for a productivity app launch.'
keywordNoKeyword or topic to search across all advertisers.
end_dateNoOnly ads up to this date, YYYY-MM-DD.
countriesNoComma-separated ISO country codes, e.g. "US,CA,MX".
company_idNoLinkedIn company ID for precise lookup.
start_dateNoOnly ads starting from this date, YYYY-MM-DD.
company_nameNoCompany name, e.g. "Microsoft". At least one of company_name, keyword or company_id is required.
conversation_idNoEcho the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.
pagination_tokenNoToken from a previous response to fetch the next page.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / company / description
      Added value: +"Alias for company_name."
    • addedInput schema / properties / company_id / description
      Added value: +"LinkedIn company ID for precise lookup."
    • addedInput schema / properties / company_name / description
      Added value: +"Company name, e.g. \"Microsoft\". At least one of company_name, keyword or company_id is required."
    • addedInput schema / properties / countries / description
      Added value: +"Comma-separated ISO country codes, e.g. \"US,CA,MX\"."
    • addedInput schema / properties / end_date / description
      Added value: +"Only ads up to this date, YYYY-MM-DD."
    • addedInput schema / properties / keyword / description
      Added value: +"Keyword or topic to search across all advertisers."
    • addedInput schema / properties / pagination_token / description
      Added value: +"Token from a previous response to fetch the next page."
    • addedInput schema / properties / start_date / description
      Added value: +"Only ads starting from this date, YYYY-MM-DD."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety and scope profile is covered. The description adds the filterable dimensions but says nothing about return format, pagination behavior, or credit cost. With annotations bearing most of the burden, this is adequate but thin.

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?

A single front-loaded sentence with the usage trigger first and the supported search modes following. Efficient with no redundant padding, though it is minimal enough that slightly more detail could still have fit.

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?

The tool has an output schema and full annotation coverage, so return values and safety needn't be explained. Given those aids, the description is sufficient for a search tool, though it omits any mention of pagination or the credit/multi-turn conversation mechanics that the schema handles.

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%, so the schema fully documents all 10 parameters including pagination_token, conversation_id, and the company/company_name alias. The description only echoes the filter categories already in the schema, adding no meaning beyond it. Baseline 3 applies.

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?

States a specific verb ('find') and resource ('LinkedIn ads') plus the three search dimensions (company name, keyword, company ID), which cleanly separates it from the Google/Meta/TikTok search siblings by platform. It stops short of explicitly differentiating from get_linkedin_ad_details (search vs. detail lookup), so it isn't fully sibling-resolved.

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?

Opens with 'Use this when you need to...' and describes the trigger conditions and optional filters, giving clear context for invocation. It never states when NOT to use it or names an alternative tool (e.g., get_linkedin_ad_details), so it falls short of a 5.

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.

Resources