Skip to main content
Glama

Google Ads & Meta Ads

LinkedIn Ads: Update Campaign End Date

linkedin_update_campaign_schedule
DestructiveIdempotent

Set or move the end date of one LinkedIn campaign in the user's own ad account. The start date and everything else stay as they are. The end must be in the future and after the campaign's start. A later end date lets the campaign keep spending for longer, so get the user's approval first. Supports dry_run.

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>",
      "end_at": "<end_at>"
    },
    "name": "linkedin_update_campaign_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_atYesNew end: an ISO-8601 instant (2026-12-31T23:59:59Z) or a date (2026-12-31, read as the end of that day, UTC).
dry_runNotrue: read the object and report the field-level changes this call would make, changing nothing. Default false. Show the user the proposal and get their approval before calling without dry_run.
campaign_idYesNumeric campaign id (or its urn:li:sponsoredCampaign URN), from linkedin_list_campaigns.
ad_account_idNoLinkedIn ad account to change: numeric account id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then.

Output Schema

NameRequiredDescriptionDefault
dryRunYesTrue when the call only previewed the change.
changedYesTrue only when this call changed LinkedIn Ads.
changesYesField-level changes: made, or proposed on a dry run.
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.
objectIdYesNumeric id of the object.
verifiedNoWhether LinkedIn's read-back holds every requested value; null when nothing was written or the read-back failed.
warningsYesSide effects and limits the user should hear about.
operationYesWhat happened: updated, no_change, or dry_run.
objectNameNoThe object's name, when it has one.
objectTypeYesKind of object addressed.
adAccountIdYesLinkedIn ad account the object is in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=true, but the description goes further: it explains the consequence of the change ('a later end date lets the campaign keep spending for longer'), requires user approval before mutating, guarantees start date and all other fields stay untouched, and surfaces the dry_run preview path. This is meaningful context beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the action and scope, followed by what is preserved, the validation rule, the risk/approval note, and the dry_run flag. No filler and nothing repeated from the title.

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?

Annotations cover the safety profile, the schema fully documents all four parameters, and an output schema exists. Against that backdrop the description supplies exactly the missing operational context: preservation of other fields, date ordering constraints, spending implications, and the approval workflow.

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 validation semantics not present in the schema: end_at must be in the future and after the campaign start. It also frames dry_run as a preview-and-approve step rather than just a boolean, though it says nothing extra about campaign_id or ad_account_id.

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 precise verb ('Set or move') and resource ('the end date of one LinkedIn campaign') plus scope ('in the user's own ad account'), and explicitly rules out touching other fields. Distinguishes it from siblings like linkedin_update_campaign_delivery, targeting, bidding, and budget without naming them.

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 preconditions ('The end must be in the future and after the campaign's start') and a procedural requirement ('get the user's approval first'), plus a dry_run path. It does not name sibling tools or state when a different update tool would be the right choice, so it falls short of a 5.

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