Skip to main content
Glama

Google Ads & Meta Ads

LinkedIn Ads: Get Campaign Details

linkedin_get_campaign
Read-onlyIdempotent

Read one LinkedIn campaign of the user's own ad account in full: status, serving state, objective, format, bidding, budgets, schedule, locale, Audience Expansion, Audience Network and creative rotation settings, and its complete targeting criteria (included and excluded facets) with the entity URNs resolved to names where LinkedIn names them. Use it before proposing a targeting, bidding or delivery change. Reads only; changes nothing.

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": {
      "campaign_id": "<campaign_id>"
    },
    "name": "linkedin_get_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idYesNumeric 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.

Output Schema

NameRequiredDescriptionDefault
idYesCampaign id.
nameNoCampaign name.
typeNoCampaign family, e.g. SPONSORED_UPDATES.
formatNoCreative format the campaign serves.
localeNoCampaign locale, language_COUNTRY.
runEndNoEnd of the schedule, ISO-8601; null when open-ended.
statusNoACTIVE, PAUSED, DRAFT, ARCHIVED, COMPLETED, CANCELED, ...
costTypeNoCPM, CPC or CPV.
currencyNoISO 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.
runStartNoStart of the schedule, ISO-8601.
unitCostNoBid, target cost or cost cap. Amount in the account currency (see the currency field), e.g. 800.00 with currency UAH means 800 UAH — never a minor-unit integer.
versionTagNoLinkedIn's version tag of the campaign.
adAccountIdYesLinkedIn ad account the campaign is in.
dailyBudgetNoDaily budget. Amount in the account currency (see the currency field), e.g. 800.00 with currency UAH means 800 UAH — never a minor-unit integer.
entityNamesYesNames of the entity URNs in the targeting, where LinkedIn names them.
totalBudgetNoTotal (lifetime) budget. Amount in the account currency (see the currency field), e.g. 800.00 with currency UAH means 800 UAH — never a minor-unit integer.
objectiveTypeNoWhat the campaign optimises for.
campaignGroupIdNoId of the campaign group it belongs to.
servingStatusesYesLinkedIn's serving states; RUNNABLE means it can deliver.
creativeSelectionNoOPTIMIZED or ROUND_ROBIN.
targetingCriteriaNoLinkedIn's targeting expression as stored: include.and[] of or-clauses keyed by facet URN, and exclude.or.
offsiteDeliveryEnabledNoLinkedIn Audience Network switch.
optimizationTargetTypeNoBidding strategy.
audienceExpansionEnabledNoAudience Expansion switch.

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 readOnlyHint, idempotentHint and destructiveHint=false, so the description's "Reads only; changes nothing" is reinforcement rather than new information. What it does add beyond structured fields is substantive: entity URNs are resolved to names where LinkedIn names them, and targeting is returned as both included and excluded facets. It does not discuss fallback behavior when an account or campaign cannot be resolved, which keeps it short of a 5.

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 resource and scope are front-loaded before the long field enumeration, and the usage rule plus the read-only note land at the end. The middle list of settings is dense but each item signals a caller-relevant capability. It is one long sentence that could be split for scanability, but no wording 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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. The description supplies what the structured fields cannot: which settings are included and that URNs come back resolved. For a single-record read with full parameter documentation, this is close to complete; only error/absence handling is unaddressed.

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 both parameters already document their accepted forms (numeric id vs urn:li:sponsoredCampaign URN) and the default-account fallback. The description adds only the framing that the account is the "user's own ad account" and does not clarify the required campaign_id or the account-selection fallback beyond what the schema says. Baseline 3 is correct when the schema carries the parameter burden.

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 ("Read one LinkedIn campaign") scoped to "the user's own ad account", then enumerates exactly what is returned: status, serving state, objective, bidding, budgets, schedule, and full targeting facets. This clearly separates it from the sibling mutation tools such as linkedin_update_campaign_targeting and linkedin_update_bidding without needing to see their schemas.

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 a concrete selection rule: "Use it before proposing a targeting, bidding or delivery change", which maps directly onto the update siblings. The closing "Reads only; changes nothing" reinforces the when-not side. There is no explicit exclusion for a scenario like reading many campaigns at once (linkedin_list_campaigns), but the context is otherwise unambiguous.

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