Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

LinkedIn Ad Details

linkedin_ad_library_ad_details

Retrieve one LinkedIn Ad Library ad by URL, numeric ID, or sponsored creative URN to inspect its creative details; uncharged on empty or failed results, with optional 24h cache.

Instructions

One LinkedIn Ad Library ad by ID. LinkedIn withholds Ran-from / impressions / targeting on most creatives — those keys are omitted, not 404. Costs 2 credits. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).

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": {
      "url": "<url>"
    },
    "name": "linkedin_ad_library_ad_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesLinkedIn Ad Library URL or numeric ad ID (also accepts urn:li:sponsoredCreative:ID). Inputs that are neither numeric nor an ad-library detail URL are a definitive 400. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
cacheNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that Ran-from/impressions/targeting keys are omitted rather than erroring, that success costs 2 credits, that empty results and failures are free, and the cache/freshness default. It stops short of describing what the returned record does contain or any rate-limit behavior.

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?

Four short sentences, front-loaded with the identity of the resource, then the data-completeness caveat, then billing, then caching. Dense but every sentence carries operational information; no filler.

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?

No output schema and no annotations mean the description must cover behavior, and it covers the two things an agent most needs to avoid misreading: partial fields and per-call credit cost. The remaining gap is that it never sketches the shape of a successful record, which matters for a detail endpoint with no output schema.

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%, including the accepted ID/URN formats, the 400 condition, and the cache semantics, so the schema already does the heavy lifting. The description's "cache=true for a free 24h cache hit (default always fresh)" largely restates the `cache` property rather than adding new meaning.

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?

"One LinkedIn Ad Library ad by ID" plus the schema's URL/ID acceptance states the resource and scope precisely, and the singular phrasing implicitly contrasts with the plural sibling linkedin_ad_library_search_ads. It never names that sibling outright, so the differentiation is inferred rather than stated.

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?

Usage is implied by the required `url` and the note that cross-platform URLs are a 400, which effectively steers an agent away from the Facebook/Google/TikTok detail siblings. There is no explicit "use this when you already have an ad ID, use search_ads when you don't" routing statement.

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