Skip to main content
Glama

Google Ads & Meta Ads

LinkedIn Ads: Get Insights

linkedin_get_insights
Read-onlyIdempotent

Read performance of one LinkedIn ad account from LinkedIn's reporting (adAnalytics) at account, campaign group, campaign or creative level over a date preset or an explicit since/until range: impressions, clicks, CTR, spend, CPC and CPM on every row, plus the metric_set asked for (core, conversions, leads, video or engagement). time_increment splits rows by day or month; campaign_ids narrows to given campaigns; compare_previous_period reads the window just before as well and adds previous values and percentage deltas per row and in total. Rows are sorted by spend. Campaign and group names come from linkedin_list_campaigns' reads; creatives are reported by id. Reads only; changes nothing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "linkedin_get_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoEntity each row stands for. Default campaign.
sinceNoStart date YYYY-MM-DD. With until, overrides date_preset.
untilNoEnd date YYYY-MM-DD. Required with since.
metric_setNoWhich metrics to add to the core columns: core = impressions, clicks, landing page clicks, spend, leads, conversions, reach, engagements; conversions = conversions split post-click/post-view and conversion value; leads = lead form opens, leads, qualified leads, cost per qualified lead; video = views, starts, quartile completions, completions; engagement = reactions, comments, shares, follows, total engagements. Every set carries impressions, spend and (except video) clicks. Default core.
date_presetNoDate range preset, resolved in UTC and ending yesterday (this_month ends today). Default last_30d.
campaign_idsNoOnly these campaign ids (from linkedin_list_campaigns). Omit for the whole account.
ad_account_idNoLinkedIn ad account to read: numeric account id or account name (from linkedin_list_ad_accounts). Pass it whenever the conversation is about a particular account; omitted, the only account or the stored default is used.
time_incrementNoall = one row per entity over the whole range; daily or monthly = one row per entity per period. Default all.
compare_previous_periodNoAlso read the immediately preceding window of equal length and report previous values and percentage deltas. Default false.

Output Schema

NameRequiredDescriptionDefault
rowsYesOne row per entity (and period).
levelYesEntity level of the rows.
totalsNoSum over every row, only with compare_previous_period.
currencyYesISO currency code that every money field in this result is denominated in, e.g. UAH or USD. Null when it could not be resolved — do not assume a currency then.
dateRangeYesCalendar dates the rows cover.
metricSetYesMetric set the rows carry.
adAccountIdYesNumeric ad account id that was read.
rowsReturnedYesRows in this result.
timeIncrementYesall, daily or monthly.
previousTotalsNoSum over the preceding window, only with compare_previous_period.
totalsDeltaPctNoPercentage change of the totals, only with compare_previous_period.
previousDateRangeNoThe preceding window, only with compare_previous_period.
conversionMetricsUnavailableNoWritten only when metric_set conversions or leads was asked and LinkedIn returned none of those metrics on any row.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/destructive/open-world, and the description still adds real behavior: rows sorted by spend, date presets resolved in UTC ending yesterday, since/until overriding the preset, and compare_previous_period fetching the preceding equal-length window and adding per-row and total deltas. It stops short of disclosure on row limits, empty-result behavior, or account-ambiguity resolution.

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 scope are front-loaded in the first clause, with parameters and the read-only guarantee trailing. It is dense to the point of being a single run-on sentence, but essentially every clause carries signal; only the metrics enumeration and the closing 'Reads only; changes nothing' border on redundancy with 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?

For a 9-parameter, zero-required analytics tool with an output schema (so return shape needn't be explained), the description covers granularity, metrics, time handling, comparison mode, and sorting. Missing only edge-case behavior such as no-data windows or how a conflicting ad_account_id is resolved.

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 coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning: time_increment controls row granularity, campaign_ids is a narrowing filter, and compare_previous_period both reads an extra window and changes the output shape (previous values plus percentage deltas per row and in total). Sourcing notes for names versus creative ids also substitute for not being able to resolve them here.

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 (reads performance), a specific source (LinkedIn adAnalytics) and the exact granularities (account, campaign group, campaign, creative) plus the metrics returned. An agent can tell it apart from sibling insight tools on other platforms and from analysis tools like linkedin_analyze_demographics without opening any 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?

Gives clear operating context: pass an explicit since/until or a date preset, narrow with campaign_ids, and it points to linkedin_list_campaigns for names/ids and linkedin_list_ad_accounts for the account. It never states when to choose this over a different LinkedIn insight tool (e.g., demographics or wasted-spend audits), so no explicit exclusions.

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