Skip to main content
Glama

Groundsocial

Get a LinkedIn Ad Library ad

linkedin_ad_get
Read-onlyIdempotent

One LinkedIn Ad Library ad: creative, advertiser, payer, run dates, impressions and targeting.

One ad from the Ad Library by id or URL: format, advertiser with company_id, paid_by, ran_from/ran_to, total_impressions (a range), impressions_by_country (percent), targeting (language, location, … with includes and excludes) and which targeting parameters were used, plus the creative: commentary, headline, destination_url, cta, image and video URLs.

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

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ad": "<ad>"
    },
    "name": "linkedin_ad_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
adYesThe ad id or its URL (linkedin.com/ad-library/detail/<id>).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the supplied annotations by disclosing the credit price (5 per call), the automatic refund on failure, the public-data restriction, and that responses carry cost_credits and credits_remaining. That is exactly the operational context an agent needs before spending credits, which annotations alone do not convey.

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?

Front-loaded with a one-line summary, followed by a structured field breakdown and a separate cost/constraint line. It is somewhat long, but each sentence carries return-field or cost information rather than filler.

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

Completeness5/5

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

There is no output schema, yet the description effectively documents the response shape (advertiser with company_id, ran_from/ran_to, impressions as a range, impressions_by_country as percent, targeting includes/excludes, creative fields). For a single-parameter read tool, nothing material an agent needs is missing.

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% and the single 'ad' parameter already documents both the id and the linkedin.com/ad-library/detail/<id> URL form with an example. The description reinforces the two accepted input forms but adds no syntax or edge-case detail beyond the schema, so baseline 3 applies.

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 ('One LinkedIn Ad Library ad') and constrains scope to a single record fetched by id or URL, which cleanly separates it from the search-style siblings like linkedin_ads_search. It also enumerates the payload (creative, advertiser, payer, run dates, impressions, targeting) so an agent knows what it retrieves.

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?

The 'one ad by id or URL' framing implies this is the detail-lookup step rather than discovery, and the 'public data only' note hints at scope. However, it never explicitly says when to use this versus a search tool or that ids come from a search call, so guidance is implied rather than stated.

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.