Skip to main content
Glama

Google Ads & Meta Ads

LinkedIn Ads: Get Audience Size

linkedin_get_audience_count
Read-onlyIdempotent

Get LinkedIn's approximate audience size for a targeting: the current targeting of one campaign in the user's own ad account (campaign_id), that targeting with proposed changes applied (campaign_id plus changes, in the form linkedin_update_campaign_targeting takes), or a full targeting criteria object. LinkedIn serves an audience only from 300 members up; servable says whether this one clears that. Reads only; the campaign is not changed.

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_audience_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesNoOptional edits to apply to the campaign's targeting before counting. Needs campaign_id.
campaign_idNoNumeric campaign id (or its urn:li:sponsoredCampaign URN), from linkedin_list_campaigns.
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.
targeting_criteriaNoA whole LinkedIn targeting criteria object to count instead of a campaign's: {include:{and:[{or:{<facet URN>:[<entity URN>,...]}}]}, exclude:{or:{...}}}.

Output Schema

NameRequiredDescriptionDefault
totalYesApproximate members matching the targeting.
activeNoApproximate recently active members, when LinkedIn reports it.
servableYesTrue when total is at least 300, LinkedIn's minimum to serve.
campaignIdNoCampaign whose targeting was counted, if one was.
targetingCriteriaYesThe criteria that were counted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered by structured data. The description does add genuine domain context beyond that — LinkedIn's 300-member serving floor and the meaning of the 'servable' flag — but it stops short of describing latency, quota cost, or whether counts are cached/approximate in any further detail.

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 mode enumeration is front-loaded and every clause carries information — the 300-member threshold and the read-only reassurance both earn their place. It is dense with nested parentheticals, which makes it slightly harder to scan than a bulleted mode list would be, but nothing is 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?

With an output schema present, the description correctly does not spend words on return values, and it covers the non-obvious parts: the three invocation modes and the servability threshold. What remains thin is failure behavior — e.g., what happens if changes is passed without campaign_id, or if targeting_criteria and campaign_id are both supplied.

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% and all four parameters are optional, so the schema alone leaves the agent guessing which combination is valid. The description resolves that by tying 'changes' to campaign_id ('Needs campaign_id') and by describing targeting_criteria as an alternative to a campaign. The nested facet/operation semantics live in the schema, so no further duplication is required.

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 ('Get LinkedIn's approximate audience size for a targeting') and then enumerates the three input modes precisely: a campaign's current targeting, that targeting plus proposed changes, or a full targeting criteria object. An agent can distinguish this from linkedin_update_campaign_targeting, which is named only as the shape that 'changes' takes, not as a competing behavior.

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 explicitly maps each parameter combination to a mode (campaign_id alone, campaign_id plus changes, or targeting_criteria), which is exactly the selection guidance an agent needs. It also closes with 'Reads only; the campaign is not changed,' implicitly steering writes to linkedin_update_campaign_targeting, though it never states that exclusion outright or says when counting is preferable to other insight tools.

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