Skip to main content
Glama
LinkedIn Ads Library MCP Server

LinkedIn Ads Library MCP Server

get_linkedin_ad_details

Read-only

Retrieve detailed data for a specific LinkedIn ad, including targeting, per-country impressions, creative, and destination URL from an ad ID or ad-library link.

Instructions

Get detailed information about a specific LinkedIn ad including full targeting (language, location, audience), per-country impression breakdown, creative and destination URL. Use this with an ad id from search_linkedin_ads, or a linkedin.com/ad-library/detail/ URL. Essential for understanding who an advertiser is targeting and extracting media URLs for visual analysis.

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_id": "<ad_id>"
    },
    "name": "get_linkedin_ad_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYes

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": "get_linkedin_ad_detailsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=true) and an output schema exists, so the description's job is to add scope context — which it does by naming the returned facets (targeting dimensions, per-country impressions, creative, destination URL). It says nothing about rate limiting, caching (despite get_cache_stats/cleanup_media_cache siblings), or failure behavior for invalid ad ids.

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 sentences, each doing distinct work: what it returns, how to obtain the input, and why you would call it. Content is front-loaded and no sentence is filler or a restatement of the name.

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?

With a single documented-source parameter, an output schema covering return values, and annotations covering the read-only/open-world profile, nothing an agent needs in order to invoke the tool correctly is missing. The remaining gaps are usage-level rather than definition-level.

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 description coverage is 0% for the single ad_id parameter, so the description must carry the load — and it does by specifying the two acceptable sources for the value (an id from search_linkedin_ads or an ad-library detail URL). It stops short of stating an accepted id format or whether a full URL is parsed, which leaves ambiguity for a 0%-coverage schema.

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 ("Get detailed information about a specific LinkedIn ad") and then enumerates the concrete contents: full targeting (language, location, audience), per-country impression breakdown, creative and destination URL. That enumeration distinguishes it from search_linkedin_ads, which only surfaces ads rather than detail.

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?

"Use this with an ad id from search_linkedin_ads, or a linkedin.com/ad-library/detail/ URL" gives concrete input provenance and an alternative entry point, and "extracting media URLs for visual analysis" implies the downstream chaining to analyze_ad_image/analyze_ad_video. No explicit when-not-to-use case is given, keeping it 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.