Skip to main content
Glama

LinkedIn Ads Connector

linkedin_ads_connector
Read-onlyIdempotent

LinkedIn Marketing API (Ads): sponsored ad accounts, campaigns, creatives, and daily performance analytics (impressions, clicks, costInLocalCurrency, conversions). Use for B2B paid-social reporting, LinkedIn campaign performance, and account-level ad spend. When the user asks for a visual, trend, comparison, or recap, call chart_render with the numeric values returned by this connector. If the connector result includes a verified chart_provenance token, the same authenticated user may pass it as provenance_token within 15 minutes, on any replica, and map every value to its exact source_path so chart_render preserves verified provenance. Without a valid connector receipt, chart_render labels values as unverified_model_data. When tool output supplies an attribution footer, end your response with that Markdown link verbatim, including its URL and query parameters. Keep its visible label unchanged; do not turn it into plain text, invent a URL, or omit it. Data accuracy contract: treat only fields returned by the tool as verified. Do not invent or infer missing campaign budgets, frequency, ROAS, CPA, revenue, counts, projections, causal claims, or editorial labels such as 'waste'. Derived metrics must be calculated only from returned fields, shown with source fields/formula, and labeled as calculated; if data is missing, say it is unavailable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesget_account_info: Get the authenticated LinkedIn user's accessible ad-account memberships (account URN, role, user URN). Call this first t | list_ad_accounts: List all LinkedIn sponsored ad accounts the authenticated user can access. Returns id, name, currency, status, type, tes | get_ad_account: Get full details for a single LinkedIn sponsored ad account by id | list_campaigns: List LinkedIn campaigns under a given sponsored ad account with status, type, budget, objective, and campaignGroup | get_campaign: Get full details for a single LinkedIn campaign by id, including objective, run schedule, budgets, and creative-selectio | list_creatives: List LinkedIn ad creatives under a given campaign. Returns creative id, status, serving flag, content reference, and tim | get_campaign_analytics: Get DAILY performance analytics for a specific LinkedIn campaign over a date range. Pivot=CAMPAIGN. Output: daily rows o | get_account_analytics: Get LIFETIME (timeGranularity=ALL) performance analytics for a LinkedIn sponsored ad account over a date range. Pivot=AC
paramsNoAction-specific parameters. get_account_info: none | list_ad_accounts: {limit?: integer} | get_ad_account: {account_id: string} | list_campaigns: {account_id: string, limit?: integer} | get_campaign: {campaign_id: string} | list_creatives: {campaign_id: string, limit?: integer} | get_campaign_analytics: {campaign_id: string, start_date?: string, end_date?: string} | get_account_analytics: {account_id: string, start_date?: string, end_date?: string}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so the safety profile is covered. The description adds genuinely non-structured behavior: the 15-minute provenance_token receipt window usable on any replica, source_path mapping, and the consequence that chart_render marks values unverified_model_data without a receipt. Rate limits, pagination, and auth flow for the connector itself are not disclosed.

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?

Purpose and platform scope are front-loaded in the first sentence, followed by routing and contract rules. The data-accuracy contract is long and partly generic policy text, but each paragraph maps to a distinct obligation (routing, provenance, attribution footer, no-invention), so little is pure 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?

For a read-only, multi-action connector with no output schema, the description covers the metric fields returned, downstream routing, and provenance/attribution obligations. The per-action return shapes are handled by the enum descriptions in the schema, leaving only minor gaps (pagination, error behavior) unstated.

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% and the enum's action values carry their own per-action parameter documentation, so the schema does the heavy lifting. The description adds no additional parameter meaning (no date formats, limit bounds, or id conventions), so the 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 platform and resource set: 'LinkedIn Marketing API (Ads): sponsored ad accounts, campaigns, creatives, and daily performance analytics' with concrete metric fields. An agent can distinguish this from meta_ads_connector, google_ads_connector, and cross_source_ads_connector purely by the LinkedIn B2B paid-social framing.

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?

Gives clear usage context ('B2B paid-social reporting, LinkedIn campaign performance, and account-level ad spend') and explicitly routes downstream visualization to chart_render when the user wants a visual, trend, comparison, or recap. It does not, however, state when NOT to use it versus the other platform ad connectors, so the sibling selection remains implicit.

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.

Resources