Skip to main content
Glama

Edit a Google campaign's device, location, excluded location, or language targeting

soclo_ads_update_campaign_targeting
DestructiveIdempotent

Soclo Ads: Edit a Google campaign's device, location, excluded location, or language targeting. Spending/deletion: preview, then owner-approved confirm:true with the same requestId. Claim live only when status is active. Fields: soclo://tools/soclo_ads_update_campaign_targeting.

Input Schema

NameRequiredDescriptionDefault
confirmNoTrue only after owner approval of spending/deletion preview.
payloadYes
platformNo
accountIdYes
requestIdNoReuse this request ID for confirmation and outcome recovery.
parametersYes
adAccountIdNoAdvertiser/ad account selected from your Soclo connection.
expectedCurrencyNoApproved preview currency, e.g. GBP.
expectedBudgetTypeNoApproved preview budget type: daily or lifetime.
expectedBudgetAmountNoApproved preview amount; changes require a new preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / definitions
      Added value: +{
      +  "s1": {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "properties": {
      +            "key": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "key"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  }
      +}
    • removedInput schema / properties / accountId / description
      Removed value: -"The connected ad account in Soclo."
    • changedInput schema / properties / payload / properties / targeting / properties / excludedLocations / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "description": "ISO 3166-1 alpha-2 country code.",
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cities": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "The geo target constant id alone.",
      -              "type": "string"
      -            },
      -            {
      -              "properties": {
      -                "key": {
      -                  "type": "string"
      -                },
      -                "name": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "key"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "countries": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "metros": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "The geo target constant id alone.",
      -              "type": "string"
      -            },
      -            {
      -              "properties": {
      -                "key": {
      -                  "type": "string"
      -                },
      -                "name": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "key"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "regions": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "The geo target constant id alone.",
      -              "type": "string"
      -            },
      -            {
      -              "properties": {
      -                "key": {
      -                  "type": "string"
      -                },
      -                "name": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "key"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "zips": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "The geo target constant id alone.",
      -              "type": "string"
      -            },
      -            {
      -              "properties": {
      -                "key": {
      -                  "type": "string"
      -                },
      -                "name": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "key"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cities": {
      +        "$ref": "#/definitions/s1"
      +      },
      +      "countries": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "metros": {
      +        "$ref": "#/definitions/s1"
      +      },
      +      "regions": {
      +        "$ref": "#/definitions/s1"
      +      },
      +      "zips": {
      +        "$ref": "#/definitions/s1"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / payload / properties / targeting / properties / locations / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "description": "ISO 3166-1 alpha-2 country code.",
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "properties": {
      -      "cities": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "The geo target constant id alone.",
      -              "type": "string"
      -            },
      -            {
      -              "properties": {
      -                "key": {
      -                  "type": "string"
      -                },
      -                "name": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "key"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "countries": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "metros": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "The geo target constant id alone.",
      -              "type": "string"
      -            },
      -            {
      -              "properties": {
      -                "key": {
      -                  "type": "string"
      -                },
      -                "name": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "key"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "regions": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "The geo target constant id alone.",
      -              "type": "string"
      -            },
      -            {
      -              "properties": {
      -                "key": {
      -                  "type": "string"
      -                },
      -                "name": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "key"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "zips": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "The geo target constant id alone.",
      -              "type": "string"
      -            },
      -            {
      -              "properties": {
      -                "key": {
      -                  "type": "string"
      -                },
      -                "name": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "key"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "properties": {
      +      "cities": {
      +        "$ref": "#/definitions/s1"
      +      },
      +      "countries": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "metros": {
      +        "$ref": "#/definitions/s1"
      +      },
      +      "regions": {
      +        "$ref": "#/definitions/s1"
      +      },
      +      "zips": {
      +        "$ref": "#/definitions/s1"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / platform / description
      Removed value: -"The campaign platform."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true, openWorld=true, so the safety profile is known. The description adds genuinely new behavior: a preview gate, owner-approved confirm:true, and requestId reuse across confirmation and outcome recovery, plus the rule that success should only be claimed once status is active. It stops short of describing what a partial/failed targeting update leaves behind.

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?

Front-loaded with the resource scope, then the confirm protocol, then the status caveat — no filler sentences. The trailing 'Fields: soclo://tools/...' pointer is compact but asks the agent to fetch information the definition should have contained, which trims one point.

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?

A destructive, 10-parameter, nested-payload tool with no output schema needs more coverage than this. The approval workflow is well covered, but the payload contract and the expected* preview-match parameters are unaddressed, leaving the agent dependent on schema inference for the actual edit semantics.

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 60% over 10 parameters with deep nesting, so the description must carry weight and only partly does. It names the four targeting dimensions that map to payload.targeting, but says nothing about the array-vs-object shapes for locations/excludedLocations, locationTargetingType, device bidModifier, or the expectedCurrency/expectedBudget* confirmation params — instead deferring to an unresolvable 'soclo://tools/...' reference.

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 specific verb (Edit) and resource (a Google campaign's targeting) and enumerates the exact facets it owns: device, location, excluded location, language. That scope cleanly separates it from siblings like update_campaign_ad_schedule, update_campaign_assets, and update_campaign_conversion_goals without opening any schema.

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 description defines the preview-then-confirm protocol for spending/deletion and the 'claim live only when status is active' verification step, which is real procedural guidance. However it never contrasts this tool with read-side siblings (get_campaign_targeting, search_ad_targeting) or says when an agent should refresh targeting before editing, so alternative selection is left implicit.

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