Skip to main content
Glama

Google Ads & Meta Ads

LinkedIn Ads: Analyze Demographics

linkedin_analyze_demographics
Read-onlyIdempotent

Break one LinkedIn ad account's results down by the professional demographics of the members reached — job title, seniority, industry, company, job function, company size or country — over a date preset or since/until range, optionally narrowed to given campaign_ids. Each value gets impressions, clicks, CTR, spend, CPC, leads, conversions, cost per lead and its share of the spend, ranked by sort_by and cut to limit; URNs are resolved to names through LinkedIn's lookups. LinkedIn reports these figures approximately, delayed and without conversion value, which the notes repeat. Pair with linkedin_get_insights for the entity view. 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_analyze_demographics"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many values to return. Default 25, maximum 50.
pivotNoDemographic to break down by. Default job_title.
sinceNoStart date YYYY-MM-DD. With until, overrides date_preset.
untilNoEnd date YYYY-MM-DD. Required with since.
sort_byNoRanking metric. Default spend.
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.

Output Schema

NameRequiredDescriptionDefault
rowsYesOne row per demographic value, ranked.
notesYesCaveats LinkedIn attaches to demographic reporting.
pivotYesDemographic the rows are keyed by.
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.
totalSpendYesSpend across every value LinkedIn returned, before limit. Amount in the account currency (see the currency field), e.g. 800.00 with currency UAH means 800 UAH — never a minor-unit integer.
adAccountIdYesNumeric ad account id that was read.
rowsReturnedYesRows in this result after limit.
rowsAvailableYesValues LinkedIn returned before limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds substantive behavior: figures are reported approximately and delayed, carry no conversion value, and URNs are resolved to names via LinkedIn lookups. It also discloses the ranking-then-cutting behavior and closes with 'Reads only; changes nothing', reinforcing the annotation rather than contradicting it.

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?

The scope, pivots, and return metrics are front-loaded in the first two sentences, with the caveats and the sibling pointer trailing. It is dense and slightly long, but no sentence is filler.

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 an output schema, full parameter documentation, and complete annotations, the description only needs to supply scope, caveats, and routing — and it does all three. An agent has everything required to select and invoke it correctly.

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 meaning beyond the field docs: it clarifies that results are ranked by sort_by and only then 'cut to limit', that the date preset can be replaced by a since/until range, and that identifiers are resolved through LinkedIn lookups. These are genuine interpretive details rather than restatements.

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?

The description opens with a specific verb and resource ('Break one LinkedIn ad account's results down by the professional demographics') and enumerates the exact pivots available. It explicitly distinguishes itself from linkedin_get_insights, which gives 'the entity view', so an agent can choose between them without opening either 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?

It states the scope (one ad account, optional campaign_ids narrowing) and names the sibling alternative with the condition that selects it ('Pair with linkedin_get_insights for the entity view'). There is no explicit when-not-to-use or prerequisite guidance, but the usage context is clear.

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