Skip to main content
Glama
LinkedIn Ads Library MCP Server

LinkedIn Ads Library MCP Server

analyze_ad_image

Read-only

Analyze a LinkedIn ad image to view the creative itself plus a structured checklist of text, offer, people, brand elements, composition, and B2B signals. Pass one image URL from ad search or details.

Instructions

Analyze a LinkedIn ad image (single image creatives, carousel cards, document/thumbnail covers): returns the image itself so you can see it, plus a checklist (text, offer, people, brand elements, composition, B2B signals). Pass one image URL from search_linkedin_ads or get_linkedin_ad_details. Downloads are cached locally.

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": {
      "media_url": "<media_url>"
    },
    "name": "analyze_ad_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idNo
media_urlYes
brand_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 the description adds genuinely useful context beyond them: the tool returns the image itself for direct viewing, and downloads are cached locally. It stops short of noting image size limits, supported formats, or failure behavior when a URL is unreachable.

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 dense sentences, front-loaded with the action and scope, then the return shape, then the prerequisite and caching note. No filler and nothing repeated from the schema or annotations.

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?

With no output schema, the description correctly spends words on the return value (image plus a named checklist of analysis dimensions) and on the local caching side effect. The remaining gap is the two optional parameters, which an agent must guess at.

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 0%, so the description must carry the load; it partially does by specifying that media_url takes a single image URL sourced from search_linkedin_ads or get_linkedin_ad_details. The ad_id and brand_name parameters are never mentioned, leaving their purpose (likely checklist contextualization) to inference.

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 ('Analyze a LinkedIn ad image') and immediately narrows scope with concrete subtypes: single image creatives, carousel cards, document/thumbnail covers. It also declares what comes back (the image plus a checklist), so an agent knows exactly what it gets without opening a schema.

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?

Explicitly directs the agent to 'Pass one image URL from search_linkedin_ads or get_linkedin_ad_details', naming the upstream tools and establishing the prerequisite. It does not state when to prefer this over analyze_ad_video or search_cached_media, so it falls short of full alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.