Skip to main content
Glama
Hermoso

Hermoso

Official

Search LinkedIn ads

search_linkedin_ads

Search LinkedIn's Ad Library by company name, keyword, or company ID to pull targeted B2B ads with headline, CTA, media, dates, and impression counts as compact JSON.

Instructions

Structured LinkedIn Ad Library search by company name, keyword, or companyId — use for a targeted B2B pull; use research_ads for open-ended research. Returns compact JSON {advertiser, headline, description, cta, link, media, dates, impressions} per ad — LinkedIn's library includes impression counts. Spends about a credit.

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
limitNomax ads returned (1–25, default 8)
companyNoadvertiser company name
keywordNokeyword across all advertisers
get_costNotrue: return the price only; nothing runs or bills
companyIdNoLinkedIn company id (numeric) when the name is ambiguous
countriesNoCSV of 2-letter codes like 'US,CA'; omit or 'ALL' = worldwide
idempotency_keyNochosen once, resent unchanged on retries: the same key never buys twice
expected_creditsNothe get_cost price; refused unbilled if the live price differs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.532
    • addedInput schema / properties / expected_credits
      Added value: +{
      +  "description": "the get_cost price; refused unbilled if the live price differs",
      +  "type": "number"
      +}
    • addedInput schema / properties / get_cost
      Added value: +{
      +  "description": "true: return the price only; nothing runs or bills",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "chosen once, resent unchanged on retries: the same key never buys twice",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.1.161
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "ads": {
      -      "description": "the compact ad objects ({advertiser, headline, description, cta, link, media, dates, impressions})",
      -      "items": {},
      -      "type": "array"
      -    },
      -    "found": {
      -      "description": "total ads found upstream",
      -      "type": "number"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  3. Addedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, readOnlyHint=false and destructiveHint=false; the description adds context the annotations cannot carry — that each call spends about a credit and that results come back as compact JSON with impression counts (a LinkedIn-specific trait). It does not explain the get_cost/idempotency billing flow, but the schema covers that fully.

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?

Three compact sentences, front-loaded with purpose, then routing, then return shape and cost. With no output schema, the field list earns its place; nothing is wasted.

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?

Returned fields, cost, and the alternative tool are all covered, and the schema fully documents the billing parameters. Minor gap: the description never mentions the get_cost preview or idempotency expectations, leaving the agent to discover the cost-confirmation pattern from parameter descriptions alone.

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% with all eight parameters documented, so the baseline is 3. The description's restatement of the three search axes and the impression-count nuance adds only marginal meaning beyond what the schema already spells out (including companyId for ambiguous names and countries syntax).

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?

Names a specific verb and resource (structured LinkedIn Ad Library search) plus the exact filter axes (company name, keyword, companyId), and explicitly separates it from the sibling research_ads. An agent can pick this tool over its nearest alternative without opening either schema.

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

Usage Guidelines5/5

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

"Use for a targeted B2B pull; use research_ads for open-ended research" gives both the selecting condition and the named alternative. The credit-cost sentence further signals when this call is appropriate versus a broad sweep.

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