Skip to main content
Glama
ghl-mcp-server-v2

ghl-mcp-server-v2

by zackscriven

ghl_ad_google_audience_upsert

Idempotent

Create or update a Google Ads combined audience with location, dimensions, exclusions, and segment references for precise ad targeting.

Instructions

Upsert audience Create or update a Google Ads combined audience Endpoint: PUT /ad-publishing/google/audiences (Version header: v3; source: v3/ad-publishing-v3.json) OAuth scopes: adPublishing.write

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": {
      "body": "<body>"
    },
    "name": "ghl_ad_google_audience_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body (schema carried verbatim from the official OpenAPI spec).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.0
    • changedInput schema / properties / body / properties / dimensions / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "ageRanges": {
      -        "description": "Age range filters",
      -        "example": [
      -          {
      -            "maxAge": 34,
      -            "minAge": 25
      -          }
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "audienceSegments": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "customAudiences": {
      -                "description": "Resource names of custom audience segments",
      -                "example": [
      -                  "customers/123/customAudiences/456"
      -                ],
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "userInterests": {
      -                "description": "Resource names of user interest segments (in-market or affinity audiences)",
      -                "example": [
      -                  "customers/123/userInterests/321"
      -                ],
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "userLists": {
      -                "description": "Resource names of user lists (remarketing lists, customer match lists, etc.)",
      -                "example": [
      -                  "customers/123/userLists/789"
      -                ],
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "type": "object"
      -          }
      -        ],
      -        "description": "Audience segment references used for targeting",
      -        "example": {
      -          "customAudiences": [
      -            "customers/123/customAudiences/456"
      -          ],
      -          "userInterests": [],
      -          "userLists": []
      -        }
      -      },
      -      "genders": {
      -        "description": "Gender targets",
      -        "example": [
      -          "MALE",
      -          "FEMALE"
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "isAgeUnknown": {
      -        "description": "Include unknown age",
      -        "example": false,
      -        "type": "boolean"
      -      },
      -      "parentalStatuses": {
      -        "description": "Parental status targets",
      -        "example": [
      -          "PARENT"
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "ageRanges": {
      +        "description": "Age range filter. Only the first entry is applied. Google accepts fixed buckets, so `minAge` must be one of 18, 25, 35, 45, 55, 65 and `maxAge`, when supplied, one of 24, 34, 44, 54, 64; `minAge` must be less than `maxAge`. Omit `maxAge` for the open-ended 65+ bucket. Values outside these are rejected with 400. Note this is the user-list age shape and differs from the `AGE_RANGE_*` strings used for campaign demographic targeting.",
      +        "example": [
      +          {
      +            "maxAge": 34,
      +            "minAge": 25
      +          }
      +        ],
      +        "items": {
      +          "properties": {
      +            "maxAge": {
      +              "description": "Upper bound of the age bucket, inclusive. Omit for the open-ended 65+ bucket.",
      +              "enum": [
      +                24,
      +                34,
      +                44,
      +                54,
      +                64
      +              ],
      +              "example": 34,
      +              "type": "number"
      +            },
      +            "minAge": {
      +              "description": "Lower bound of the age bucket, inclusive",
      +              "enum": [
      +                18,
      +                25,
      +                35,
      +                45,
      +                55,
      +                65
      +              ],
      +              "example": 25,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "minAge"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "audienceSegments": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "customAudiences": {
      +                "description": "Resource names of custom audience segments",
      +                "example": [
      +                  "customers/123/customAudiences/456"
      +                ],
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "userInterests": {
      +                "description": "Resource names of user interest segments (in-market or affinity audiences)",
      +                "example": [
      +                  "customers/123/userInterests/321"
      +                ],
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "userLists": {
      +                "description": "Resource names of user lists (remarketing lists, customer match lists, etc.)",
      +                "example": [
      +                  "customers/123/userLists/789"
      +                ],
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "title": "AudienceSegmentsDTO",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "Audience segment references used for targeting",
      +        "example": {
      +          "customAudiences": [
      +            "customers/6776452901/customAudiences/456"
      +          ],
      +          "userInterests": [
      +            "customers/6776452901/userInterests/80351"
      +          ],
      +          "userLists": [
      +            "customers/6776452901/userLists/9215680180"
      +          ]
      +        }
      +      },
      +      "genders": {
      +        "description": "Gender targets",
      +        "example": [
      +          "MALE",
      +          "FEMALE"
      +        ],
      +        "items": {
      +          "enum": [
      +            "MALE",
      +            "FEMALE",
      +            "UNDETERMINED"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "isAgeUnknown": {
      +        "description": "Include unknown age",
      +        "example": false,
      +        "type": "boolean"
      +      },
      +      "parentalStatuses": {
      +        "description": "Parental status targets",
      +        "example": [
      +          "PARENT"
      +        ],
      +        "items": {
      +          "enum": [
      +            "PARENT",
      +            "NOT_A_PARENT",
      +            "UNDETERMINED"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "title": "AudienceDimensionDTO",
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / body / properties / exclusionDimension / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "ageRanges": {
      -        "description": "Age range filters",
      -        "example": [
      -          {
      -            "maxAge": 34,
      -            "minAge": 25
      -          }
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "audienceSegments": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "customAudiences": {
      -                "description": "Resource names of custom audience segments",
      -                "example": [
      -                  "customers/123/customAudiences/456"
      -                ],
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "userInterests": {
      -                "description": "Resource names of user interest segments (in-market or affinity audiences)",
      -                "example": [
      -                  "customers/123/userInterests/321"
      -                ],
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "userLists": {
      -                "description": "Resource names of user lists (remarketing lists, customer match lists, etc.)",
      -                "example": [
      -                  "customers/123/userLists/789"
      -                ],
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "type": "object"
      -          }
      -        ],
      -        "description": "Audience segment references used for targeting",
      -        "example": {
      -          "customAudiences": [
      -            "customers/123/customAudiences/456"
      -          ],
      -          "userInterests": [],
      -          "userLists": []
      -        }
      -      },
      -      "genders": {
      -        "description": "Gender targets",
      -        "example": [
      -          "MALE",
      -          "FEMALE"
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "isAgeUnknown": {
      -        "description": "Include unknown age",
      -        "example": false,
      -        "type": "boolean"
      -      },
      -      "parentalStatuses": {
      -        "description": "Parental status targets",
      -        "example": [
      -          "PARENT"
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "ageRanges": {
      +        "description": "Age range filter. Only the first entry is applied. Google accepts fixed buckets, so `minAge` must be one of 18, 25, 35, 45, 55, 65 and `maxAge`, when supplied, one of 24, 34, 44, 54, 64; `minAge` must be less than `maxAge`. Omit `maxAge` for the open-ended 65+ bucket. Values outside these are rejected with 400. Note this is the user-list age shape and differs from the `AGE_RANGE_*` strings used for campaign demographic targeting.",
      +        "example": [
      +          {
      +            "maxAge": 34,
      +            "minAge": 25
      +          }
      +        ],
      +        "items": {
      +          "properties": {
      +            "maxAge": {
      +              "description": "Upper bound of the age bucket, inclusive. Omit for the open-ended 65+ bucket.",
      +              "enum": [
      +                24,
      +                34,
      +                44,
      +                54,
      +                64
      +              ],
      +              "example": 34,
      +              "type": "number"
      +            },
      +            "minAge": {
      +              "description": "Lower bound of the age bucket, inclusive",
      +              "enum": [
      +                18,
      +                25,
      +                35,
      +                45,
      +                55,
      +                65
      +              ],
      +              "example": 25,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "minAge"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "audienceSegments": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "customAudiences": {
      +                "description": "Resource names of custom audience segments",
      +                "example": [
      +                  "customers/123/customAudiences/456"
      +                ],
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "userInterests": {
      +                "description": "Resource names of user interest segments (in-market or affinity audiences)",
      +                "example": [
      +                  "customers/123/userInterests/321"
      +                ],
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "userLists": {
      +                "description": "Resource names of user lists (remarketing lists, customer match lists, etc.)",
      +                "example": [
      +                  "customers/123/userLists/789"
      +                ],
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "title": "AudienceSegmentsDTO",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "Audience segment references used for targeting",
      +        "example": {
      +          "customAudiences": [
      +            "customers/6776452901/customAudiences/456"
      +          ],
      +          "userInterests": [
      +            "customers/6776452901/userInterests/80351"
      +          ],
      +          "userLists": [
      +            "customers/6776452901/userLists/9215680180"
      +          ]
      +        }
      +      },
      +      "genders": {
      +        "description": "Gender targets",
      +        "example": [
      +          "MALE",
      +          "FEMALE"
      +        ],
      +        "items": {
      +          "enum": [
      +            "MALE",
      +            "FEMALE",
      +            "UNDETERMINED"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "isAgeUnknown": {
      +        "description": "Include unknown age",
      +        "example": false,
      +        "type": "boolean"
      +      },
      +      "parentalStatuses": {
      +        "description": "Parental status targets",
      +        "example": [
      +          "PARENT"
      +        ],
      +        "items": {
      +          "enum": [
      +            "PARENT",
      +            "NOT_A_PARENT",
      +            "UNDETERMINED"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "title": "AudienceDimensionDTO",
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / body / title
      Added value: +"UpsertAudienceDTO"
  2. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is largely covered. The description adds the concrete endpoint and the required OAuth scope (adPublishing.write), which is genuinely useful operational context, but says nothing about what an update replaces, whether omitted fields are cleared, or what the call returns.

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?

Four short lines, front-loaded with the action and resource, followed by endpoint and scope metadata. No padding or redundancy; the only slight inefficiency is that both the title line and the second line restate 'upsert audience'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a deeply nested request schema with rich inline descriptions and no output schema, the description covers auth and transport but omits the one thing an agent most needs for an upsert: how the server decides create vs update (presumably resourceName) and what a successful response contains. Adequate but with a real gap for a mutation tool.

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?

There is a single body parameter with 100% schema description coverage, and the nested schema exhaustively documents fields like ageRanges and audienceSegments. The description adds no parameter-level meaning at all, so the baseline 3 for fully-covered schemas is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (upsert) and resource (Google Ads combined audience) and clarifies create-or-update semantics, which distinguishes it from the read-only siblings ghl_ad_google_audience_get and ghl_ad_google_audience_list. It does not explicitly name those siblings, but the purpose is unambiguous.

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

Usage Guidelines3/5

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

The 'create or update' phrasing implies when to reach for it over the get/list siblings, and the OAuth scope line hints at prerequisites. However, there is no explicit guidance on how to choose between creating and updating (e.g. whether supplying resourceName triggers an update), nor any reference to alternatives such as ghl_ad_google_segment_upsert.

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

Deploy Server

Other Tools