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

ghl-mcp-server-v2

by zackscriven

ghl_ad_google_asset_upsert

Create or update Google Ads call and sitelink assets for a location, including phone numbers, landing pages, and ad schedules.

Instructions

Upsert assets Create or update Google Ads creative assets Endpoint: POST /ad-publishing/google/assets (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_asset_upsert"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.1.0
    • changedInput schema / properties / body / properties / payload / description
      Previous value: -"Asset payload — shape depends on the type field: CallAssetPayload (CALL), SitelinkAssetPayload (SITELINK), or LeadFormAssetPayload (LEAD_FORM)"New value: +"Asset payload — shape depends on the type field: CallAssetPayload (CALL) or SitelinkAssetPayload (SITELINK)"
    • changedInput schema / properties / body / properties / payload / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "adScheduleTargets": {
      -        "description": "Ad schedule targets restricting when the call asset is shown",
      -        "example": [
      -          {
      -            "dayOfWeek": "MONDAY",
      -            "endHour": 17,
      -            "endMinute": "ZERO",
      -            "startHour": 9,
      -            "startMinute": "ZERO"
      -          }
      -        ],
      -        "items": {
      -          "properties": {
      -            "dayOfWeek": {
      -              "description": "Day of the week for this schedule",
      -              "enum": [
      -                "MONDAY",
      -                "TUESDAY",
      -                "WEDNESDAY",
      -                "THURSDAY",
      -                "FRIDAY",
      -                "SATURDAY",
      -                "SUNDAY"
      -              ],
      -              "example": "MONDAY",
      -              "type": "string"
      -            },
      -            "endHour": {
      -              "description": "End hour in 24h format (0-23)",
      -              "example": 17,
      -              "type": "number"
      -            },
      -            "endMinute": {
      -              "description": "Minute mark the schedule ends at",
      -              "enum": [
      -                "ZERO",
      -                "FIFTEEN",
      -                "THIRTY",
      -                "FORTY_FIVE"
      -              ],
      -              "example": "ZERO",
      -              "type": "string"
      -            },
      -            "startHour": {
      -              "description": "Start hour in 24h format (0-23)",
      -              "example": 9,
      -              "type": "number"
      -            },
      -            "startMinute": {
      -              "description": "Minute mark the schedule starts at",
      -              "enum": [
      -                "ZERO",
      -                "FIFTEEN",
      -                "THIRTY",
      -                "FORTY_FIVE"
      -              ],
      -              "example": "ZERO",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "startMinute",
      -            "endMinute",
      -            "dayOfWeek",
      -            "startHour",
      -            "endHour"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "callConversionAction": {
      -        "description": "Call conversion action resource name",
      -        "example": "customers/123/conversionActions/456",
      -        "type": "string"
      -      },
      -      "countryCode": {
      -        "description": "Two-letter ISO country code",
      -        "example": "US",
      -        "type": "string"
      -      },
      -      "phoneNumber": {
      -        "description": "Phone number for call ads",
      -        "example": "+14155551234",
      -        "type": "string"
      -      },
      -      "resourceName": {
      -        "description": "Google Ads resource name for an existing call asset",
      -        "example": "customers/123/assets/456",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "phoneNumber",
      -      "countryCode"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "adScheduleTargets": {
      -        "description": "Ad schedule targets restricting when the sitelink is shown",
      -        "example": [
      -          {
      -            "dayOfWeek": "MONDAY",
      -            "endHour": 17,
      -            "endMinute": "ZERO",
      -            "startHour": 9,
      -            "startMinute": "ZERO"
      -          }
      -        ],
      -        "items": {
      -          "properties": {
      -            "dayOfWeek": {
      -              "description": "Day of the week for this schedule",
      -              "enum": [
      -                "MONDAY",
      -                "TUESDAY",
      -                "WEDNESDAY",
      -                "THURSDAY",
      -                "FRIDAY",
      -                "SATURDAY",
      -                "SUNDAY"
      -              ],
      -              "example": "MONDAY",
      -              "type": "string"
      -            },
      -            "endHour": {
      -              "description": "End hour in 24h format (0-23)",
      -              "example": 17,
      -              "type": "number"
      -            },
      -            "endMinute": {
      -              "description": "Minute mark the schedule ends at",
      -              "enum": [
      -                "ZERO",
      -                "FIFTEEN",
      -                "THIRTY",
      -                "FORTY_FIVE"
      -              ],
      -              "example": "ZERO",
      -              "type": "string"
      -            },
      -            "startHour": {
      -              "description": "Start hour in 24h format (0-23)",
      -              "example": 9,
      -              "type": "number"
      -            },
      -            "startMinute": {
      -              "description": "Minute mark the schedule starts at",
      -              "enum": [
      -                "ZERO",
      -                "FIFTEEN",
      -                "THIRTY",
      -                "FORTY_FIVE"
      -              ],
      -              "example": "ZERO",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "startMinute",
      -            "endMinute",
      -            "dayOfWeek",
      -            "startHour",
      -            "endHour"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "description1": {
      -        "description": "First description line",
      -        "example": "See our plans and pricing",
      -        "type": "string"
      -      },
      -      "description2": {
      -        "description": "Second description line",
      -        "example": "Starting at $9/month",
      -        "type": "string"
      -      },
      -      "endDate": {
      -        "description": "End date for the sitelink (YYYY-MM-DD)",
      -        "example": "2024-12-31",
      -        "type": "string"
      -      },
      -      "finalUrls": {
      -        "description": "Final landing page URL",
      -        "example": "https://example.com/pricing",
      -        "type": "string"
      -      },
      -      "linkText": {
      -        "description": "Sitelink display text",
      -        "example": "Pricing",
      -        "type": "string"
      -      },
      -      "resourceName": {
      -        "description": "Google Ads resource name for an existing sitelink asset",
      -        "example": "customers/123/assets/456",
      -        "type": "string"
      -      },
      -      "startDate": {
      -        "description": "Start date for the sitelink (YYYY-MM-DD)",
      -        "example": "2024-01-01",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "linkText",
      -      "finalUrls"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "backgroundImageAsset": {
      -        "description": "Background image asset resource name",
      -        "example": "customers/123/assets/789",
      -        "type": "string"
      -      },
      -      "businessName": {
      -        "description": "Business name shown on the form",
      -        "example": "Acme Corp",
      -        "type": "string"
      -      },
      -      "callToActionDescription": {
      -        "description": "Description text for the CTA button",
      -        "example": "Request your free quote now",
      -        "type": "string"
      -      },
      -      "callToActionType": {
      -        "description": "Call to action button type",
      -        "enum": [
      -          "LEARN_MORE",
      -          "GET_QUOTE",
      -          "APPLY_NOW",
      -          "SIGN_UP",
      -          "CONTACT_US",
      -          "SUBSCRIBE",
      -          "DOWNLOAD",
      -          "BOOK_NOW",
      -          "GET_OFFER",
      -          "REGISTER",
      -          "GET_INFO",
      -          "REQUEST_DEMO",
      -          "JOIN_NOW",
      -          "GET_STARTED",
      -          "VISIT_SITE"
      -        ],
      -        "example": "GET_QUOTE",
      -        "type": "string"
      -      },
      -      "customQuestionFields": {
      -        "description": "Custom question fields appended after standard fields",
      -        "example": [
      -          {
      -            "customQuestionText": "What service are you interested in?",
      -            "singleChoiceAnswers": [
      -              {
      -                "answerTexts": [
      -                  "Web Design",
      -                  "SEO"
      -                ]
      -              }
      -            ]
      -          }
      -        ],
      -        "items": {
      -          "properties": {
      -            "customQuestionText": {
      -              "description": "Custom question text shown to the user",
      -              "example": "What service are you interested in?",
      -              "type": "string"
      -            },
      -            "singleChoiceAnswers": {
      -              "description": "Answer choices for the custom question",
      -              "example": [
      -                {
      -                  "answerTexts": [
      -                    "Web Design",
      -                    "SEO",
      -                    "PPC"
      -                  ]
      -                }
      -              ],
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "customQuestionText",
      -            "singleChoiceAnswers"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "description": {
      -        "description": "Lead form description",
      -        "example": "Fill out this form and we will contact you within 24 hours",
      -        "type": "string"
      -      },
      -      "desiredIntent": {
      -        "description": "Desired lead intent level",
      -        "enum": [
      -          "LOW_INTENT",
      -          "HIGH_INTENT"
      -        ],
      -        "example": "HIGH_INTENT",
      -        "type": "string"
      -      },
      -      "fields": {
      -        "description": "Form fields to collect user input",
      -        "example": [
      -          {
      -            "inputType": "FULL_NAME",
      -            "singleChoiceAnswers": []
      -          },
      -          {
      -            "inputType": "EMAIL",
      -            "singleChoiceAnswers": []
      -          }
      -        ],
      -        "items": {
      -          "properties": {
      -            "inputType": {
      -              "description": "Field input type from Google Ads LeadFormFieldUserInputType",
      -              "example": "FULL_NAME",
      -              "type": "string"
      -            },
      -            "singleChoiceAnswers": {
      -              "description": "Single-choice answer options for the field",
      -              "example": [
      -                {
      -                  "key": "option_1",
      -                  "value": "Yes"
      -                }
      -              ],
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "inputType"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "finalUrls": {
      -        "description": "Final URL shown after form submission",
      -        "example": "https://example.com/thank-you",
      -        "type": "string"
      -      },
      -      "headline": {
      -        "description": "Lead form headline",
      -        "example": "Get a free quote",
      -        "type": "string"
      -      },
      -      "postSubmitCallToActionType": {
      -        "description": "Post-submit CTA button type",
      -        "enum": [
      -          "VISIT_SITE",
      -          "DOWNLOAD",
      -          "LEARN_MORE",
      -          "SHOP_NOW"
      -        ],
      -        "example": "VISIT_SITE",
      -        "type": "string"
      -      },
      -      "postSubmitDescription": {
      -        "description": "Description shown after form submission",
      -        "example": "We will be in touch shortly",
      -        "type": "string"
      -      },
      -      "postSubmitHeadline": {
      -        "description": "Headline shown after form submission",
      -        "example": "Thank you!",
      -        "type": "string"
      -      },
      -      "privacyPolicyUrl": {
      -        "description": "Privacy policy URL",
      -        "example": "https://example.com/privacy",
      -        "type": "string"
      -      },
      -      "resourceName": {
      -        "description": "Google Ads resource name for an existing lead form asset",
      -        "example": "customers/123/assets/456",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "headline",
      -      "description",
      -      "businessName",
      -      "privacyPolicyUrl",
      -      "fields",
      -      "callToActionType"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "adScheduleTargets": {
      +        "description": "Ad schedule targets restricting when the call asset is shown",
      +        "example": [
      +          {
      +            "dayOfWeek": "MONDAY",
      +            "endHour": 17,
      +            "endMinute": "ZERO",
      +            "startHour": 9,
      +            "startMinute": "ZERO"
      +          }
      +        ],
      +        "items": {
      +          "properties": {
      +            "dayOfWeek": {
      +              "description": "Day of the week for this schedule",
      +              "enum": [
      +                "MONDAY",
      +                "TUESDAY",
      +                "WEDNESDAY",
      +                "THURSDAY",
      +                "FRIDAY",
      +                "SATURDAY",
      +                "SUNDAY"
      +              ],
      +              "example": "MONDAY",
      +              "type": "string"
      +            },
      +            "endHour": {
      +              "description": "End hour in 24h format (0-23)",
      +              "example": 17,
      +              "type": "number"
      +            },
      +            "endMinute": {
      +              "description": "Minute mark the schedule ends at",
      +              "enum": [
      +                "ZERO",
      +                "FIFTEEN",
      +                "THIRTY",
      +                "FORTY_FIVE"
      +              ],
      +              "example": "ZERO",
      +              "type": "string"
      +            },
      +            "startHour": {
      +              "description": "Start hour in 24h format (0-23)",
      +              "example": 9,
      +              "type": "number"
      +            },
      +            "startMinute": {
      +              "description": "Minute mark the schedule starts at",
      +              "enum": [
      +                "ZERO",
      +                "FIFTEEN",
      +                "THIRTY",
      +                "FORTY_FIVE"
      +              ],
      +              "example": "ZERO",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "startMinute",
      +            "endMinute",
      +            "dayOfWeek",
      +            "startHour",
      +            "endHour"
      +          ],
      +          "title": "AdScheduleTargetDTO",
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "callConversionAction": {
      +        "description": "Call conversion action resource name",
      +        "example": "customers/123/conversionActions/456",
      +        "type": "string"
      +      },
      +      "countryCode": {
      +        "description": "Two-letter ISO country code",
      +        "example": "US",
      +        "type": "string"
      +      },
      +      "phoneNumber": {
      +        "description": "Phone number for call ads",
      +        "example": "+14155551234",
      +        "type": "string"
      +      },
      +      "resourceName": {
      +        "description": "Google Ads resource name for an existing call asset",
      +        "example": "customers/123/assets/456",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "phoneNumber",
      +      "countryCode"
      +    ],
      +    "title": "CallAssetPayloadDTO",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "adScheduleTargets": {
      +        "description": "Ad schedule targets restricting when the sitelink is shown",
      +        "example": [
      +          {
      +            "dayOfWeek": "MONDAY",
      +            "endHour": 17,
      +            "endMinute": "ZERO",
      +            "startHour": 9,
      +            "startMinute": "ZERO"
      +          }
      +        ],
      +        "items": {
      +          "properties": {
      +            "dayOfWeek": {
      +              "description": "Day of the week for this schedule",
      +              "enum": [
      +                "MONDAY",
      +                "TUESDAY",
      +                "WEDNESDAY",
      +                "THURSDAY",
      +                "FRIDAY",
      +                "SATURDAY",
      +                "SUNDAY"
      +              ],
      +              "example": "MONDAY",
      +              "type": "string"
      +            },
      +            "endHour": {
      +              "description": "End hour in 24h format (0-23)",
      +              "example": 17,
      +              "type": "number"
      +            },
      +            "endMinute": {
      +              "description": "Minute mark the schedule ends at",
      +              "enum": [
      +                "ZERO",
      +                "FIFTEEN",
      +                "THIRTY",
      +                "FORTY_FIVE"
      +              ],
      +              "example": "ZERO",
      +              "type": "string"
      +            },
      +            "startHour": {
      +              "description": "Start hour in 24h format (0-23)",
      +              "example": 9,
      +              "type": "number"
      +            },
      +            "startMinute": {
      +              "description": "Minute mark the schedule starts at",
      +              "enum": [
      +                "ZERO",
      +                "FIFTEEN",
      +                "THIRTY",
      +                "FORTY_FIVE"
      +              ],
      +              "example": "ZERO",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "startMinute",
      +            "endMinute",
      +            "dayOfWeek",
      +            "startHour",
      +            "endHour"
      +          ],
      +          "title": "AdScheduleTargetDTO",
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "description1": {
      +        "description": "First description line",
      +        "example": "See our plans and pricing",
      +        "type": "string"
      +      },
      +      "description2": {
      +        "description": "Second description line",
      +        "example": "Starting at $9/month",
      +        "type": "string"
      +      },
      +      "endDate": {
      +        "description": "End date for the sitelink (YYYY-MM-DD)",
      +        "example": "2024-12-31",
      +        "type": "string"
      +      },
      +      "finalUrls": {
      +        "description": "Final landing page URL",
      +        "example": "https://example.com/pricing",
      +        "type": "string"
      +      },
      +      "linkText": {
      +        "description": "Sitelink display text",
      +        "example": "Pricing",
      +        "type": "string"
      +      },
      +      "resourceName": {
      +        "description": "Google Ads resource name for an existing sitelink asset",
      +        "example": "customers/123/assets/456",
      +        "type": "string"
      +      },
      +      "startDate": {
      +        "description": "Start date for the sitelink (YYYY-MM-DD)",
      +        "example": "2024-01-01",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "linkText",
      +      "finalUrls"
      +    ],
      +    "title": "SitelinkAssetPayloadDTO",
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / body / properties / type / enum
      Previous value: -[
      -  "CALL",
      -  "SITELINK",
      -  "LEAD_FORM"
      -]New value: +[
      +  "CALL",
      +  "SITELINK"
      +]
    • addedInput schema / properties / body / title
      Added value: +"UpsertAssetsDTO"
  2. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

The description adds genuinely useful context the annotations don't carry: the OAuth scope adPublishing.write and the exact endpoint/version, which tells the agent this is an authenticated write. It does not explain the upsert matching rule (does an existing asset get matched by resourceName?) or what happens when resourceName is omitted, which is the key behavioral unknown for a create-or-update operation with idempotentHint=false.

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 compact lines: purpose first, then endpoint, version, and scope. No filler, no restatement of the title beyond the one-line purpose, and the actionable details are front-loaded.

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?

With a deeply nested oneOf payload and no output schema, the definition is adequate but thin: it is silent on the upsert identity rule, on whether the response returns the created asset, and on any prerequisite integration state. The schema covers field-level detail, but the operation-level behavior an agent needs to call this safely is under-described.

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 coverage is 100% and the nested body schema already documents type, payload variants, and ad schedule fields in detail, so the baseline of 3 applies. The description contributes nothing beyond the schema — notably it does not mention the CALL/SITELINK discriminator or how payload shape depends on it.

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?

The description names a specific verb and resource: 'Create or update Google Ads creative assets', reinforced by the concrete endpoint POST /ad-publishing/google/assets. It is clearly distinguishable from siblings like ghl_ad_google_asset_list, but it never states that distinction explicitly.

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

Usage Guidelines2/5

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

There is no guidance on when to use this instead of ghl_ad_google_asset_list or the other ad_google upsert tools, no prerequisites (e.g. an existing Google Ads integration/account), and no conditions under which it should not be called. 'Create or update' is an operation semantic, not usage guidance.

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