Skip to main content
Glama
ZLeventer

linkedin-campaign-manager-mcp

li_get_creative

Get full details of a LinkedIn ad creative: headline, body, URL, media, CTA, status, and campaign URNs. Use to audit ad copy, debug rejected creatives, or extract landing page URLs for UTM analysis.

Instructions

Get full detail for a single LinkedIn ad creative, including the creative content (headline, body copy, destination URL, image/video URNs, call-to-action label), intendedStatus, associated campaign URNs, and creative type. Use when auditing ad copy and creative assets, debugging a rejected creative, or pulling the landing page URL to cross-reference with GA4 UTM data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
creative_idYesCreative numeric ID or URN (urn:li:sponsoredCreative:123). Required.
ad_account_idNoAd account numeric ID or URN. Defaults to LINKEDIN_DEFAULT_AD_ACCOUNT.

Implementation Reference

  • Schema (getCreativeSchema) and handler function (getCreative) for the 'li_get_creative' tool. The schema requires creative_id (with optional ad_account_id). The handler resolves the ad account, unwraps the creative URN, and calls liGet on /adAccounts/{accountId}/creatives/{creativeId}.
    // ─── get-creative ─────────────────────────────────────────────────────────────
    
    export const getCreativeSchema = {
      creative_id: z
        .string()
        .describe("Creative numeric ID or URN (urn:li:sponsoredCreative:123). Required."),
      ad_account_id: z
        .string()
        .optional()
        .describe("Ad account numeric ID or URN. Defaults to LINKEDIN_DEFAULT_AD_ACCOUNT."),
    };
    
    export async function getCreative(args: { creative_id: string; ad_account_id?: string }) {
      const account = resolveAdAccount(args.ad_account_id);
      const accountId = unwrapURN(account);
      const creativeId = unwrapURN(urn("sponsoredCreative", args.creative_id));
      return liGet(`/adAccounts/${accountId}/creatives/${creativeId}`);
    }
  • src/index.ts:102-107 (registration)
    Registration of the 'li_get_creative' tool on the MCP server with description, schema reference (getCreativeSchema), and handler binding (getCreative).
    server.tool(
      "li_get_creative",
      "Get full detail for a single LinkedIn ad creative, including the creative content (headline, body copy, destination URL, image/video URNs, call-to-action label), intendedStatus, associated campaign URNs, and creative type. Use when auditing ad copy and creative assets, debugging a rejected creative, or pulling the landing page URL to cross-reference with GA4 UTM data.",
      getCreativeSchema,
      async (args) => { try { return ok(await getCreative(args)); } catch (e) { return err(e); } }
    );
Behavior4/5

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

No annotations provided; description fully discloses returned fields (content, status, campaign URNs, type). No mention of rate limits or auth, but sufficient for a read operation.

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?

Two sentences, front-loaded purpose, no redundant words. Every sentence provides essential information.

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?

No output schema, but description enumerates key return fields. Lacks error handling details, but covers primary use case comprehensively.

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%; description adds value by specifying 'numeric ID or URN' for creative_id and default value for ad_account_id, beyond the schema.

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?

Description starts with a specific verb+resource ('Get full detail for a single LinkedIn ad creative') and lists included fields, clearly differentiating from sibling listing tools like li_list_creatives.

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?

Explicitly states use cases: auditing ad copy, debugging rejected creatives, cross-referencing URLs. Does not mention when not to use, but context is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZLeventer/linkedin-campaign-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server