Skip to main content
Glama

Metadata MCP Connector

Get Campaign UTMs

get_campaign_utms
Read-only

Read ONE campaign's resolved UTM tracking parameters per channel, each value tagged with where it came from.

            KEYWORDS: utm, utms, utm_source, utm_medium, utm_campaign, utm_term, utm_content, tracking parameters, final url suffix, placeholder, UPDATE ME, inherited, account default, campaign override

            USE THIS TOOL WHEN THE USER ASKS:
            - "What UTMs does campaign X use?" / "Show me the tracking parameters on this campaign"
            - "Does this campaign override the account UTM defaults?"
            - "Does campaign X still have the UPDATE ME placeholder in its UTMs?"

            INHERITANCE RULE - READ BEFORE ANSWERING ANY UTM QUESTION:
            UTMs are inherited, never blank. A campaign channel with an empty stored
            mapping does NOT have "no UTMs" - it tracks with the account's UTM defaults,
            and where the account set nothing it tracks with the Metadata platform default.
            Roughly half of all channel rows in production are in that inherited state.
            NEVER report "no UTMs configured" from an empty stored field: report the
            resolved value and its origin.

            ORIGIN IS PER CHANNEL, not per key: a channel with an empty stored mapping
            inherits the account default whole, so a channel whose resolved mapping differs
            at all from that is stored on the campaign and every one of its values is an
            override. The per-key `same_as_default` flag says whether that one key happens
            to match the default anyway.

            ORIGIN VALUES:
            - campaign_override: stored on this campaign channel, differs from what it would inherit.
            - account_default: inherited from this account's UTM defaults.
            - platform_default: inherited from the Metadata-wide default (account set nothing).
            - not_set: the channel really has no UTM mapping (non-sponsored channels only).

            HONEST LIMIT: a campaign that stores a mapping identical to the default it
            would inherit is reported as inherited. The platform returns resolved values
            with no provenance, so that case cannot be distinguished - say so rather than
            claiming the campaign has no override.

            INPUT: campaign_id - the WIZARD campaign id (the `id` field returned by
            list_wizard_campaigns / search_campaigns_by_names). Not an experiment id.

            RESPONSE SHAPE:
            {
              "campaign_id": 173290,
              "is_editable": true,
              "channels": {
                "LINKEDIN": {
                  "origin": "campaign_override",
                  "inherited_from": "account_default",
                  "values": {
                    "UTM_SOURCE": {"value": "UPDATE ME", "origin": "campaign_override", "same_as_default": false, "placeholder": true},
                    "UTM_MEDIUM": {"value": "AD_CHANNEL", "origin": "campaign_override", "same_as_default": true, "placeholder": false}
                  }
                }
              },
              "account_defaults": {"LINKEDIN": {"UTM_SOURCE": "Metadata", ...}, ...},
              "platform_default": {"UTM_SOURCE": "Metadata", "UTM_MEDIUM": "AD_CHANNEL", ...},
              "notes": ["..."]
            }

            `placeholder: true` marks a value that still carries the UPDATE ME placeholder -
            that is a real tracking defect worth reporting to the user.

            Values like AD_CHANNEL / OFFER_TYPE / AD_NAME are dynamic tokens the platform
            substitutes at serve time, not literal text.

            `platform_default` is a constant mirrored in mcp-server from the platform source;
            it is not fetched from an endpoint and covers sponsored channels only.

            READ-ONLY. To change a campaign channel's UTMs use set_campaign_utms; the
            account defaults are edited in the Metadata UI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idYesWizard campaign id (the `id` from list_wizard_campaigns).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Even though annotations declare readOnlyHint=true and destructiveHint=false, the description adds substantial behavioral context: UTM inheritance is never blank, origin is per channel, identical-to-default mappings are honestly reported as inherited, placeholder values indicate a real defect, and platform_default is a mirrored constant rather than a live fetch. No annotation contradiction exists.

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 description is long, but the extra length is justified by the inheritance complexity and the risk of hallucinating 'no UTMs' answers. It is well-structured with clear sections, a response example, and prominent warnings, though the keyword list adds some redundancy.

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?

For a tool with no output schema, the description fully compensates by showing the response shape, defining all origin values, explaining inheritance rules, noting the honest limit, and telling the agent how to edit UTMs elsewhere. An agent has everything necessary to invoke the tool and interpret its result 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?

The input schema already documents campaign_id as the Wizard campaign id with 100% coverage. The description adds meaningful disambiguation beyond the schema by specifying that the id comes from either list_wizard_campaigns or search_campaigns_by_names and is explicitly 'Not an experiment id,' which reduces a likely class of agent mistakes.

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: 'Read ONE campaign's resolved UTM tracking parameters per channel, each value tagged with where it came from.' This clearly distinguishes the tool from related siblings like set_campaign_utms and search_campaigns_by_utm_value by emphasizing read-only, per-campaign, resolved values with origin provenance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes explicit 'USE THIS TOOL WHEN THE USER ASKS' examples, such as 'What UTMs does campaign X use?' It also names set_campaign_utms as the correct tool for changing UTMs and clarifies that account defaults are edited in the Metadata UI, giving an agent clear routing guidance.

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