Skip to main content
Glama

Edit a Microsoft Advertising responsive search ad

msads_update_responsive_search_ad
DestructiveIdempotent

Change a responsive search ad's headlines, descriptions, pins, final URL or display paths. Only what you pass is changed, but a list of headlines or descriptions REPLACES the whole existing list, so send the complete new set. Existing pins are kept for every text that stays; pass pinnedHeadlines / pinnedDescriptions to set them instead (an empty list unpins all). Editing a live ad sends it back for Microsoft's review. Returns the previous text and pins so they can be restored. Use dryRun first.

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": {
      "adGroupId": "<adGroupId>",
      "adId": "<adId>"
    },
    "name": "msads_update_responsive_search_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
adIdYesAd id, from msads_get_ads (must be a responsive search ad).
path1NoNew first display path.
path2NoNew second display path.
dryRunNoPreview only. Microsoft has no validate-only mode, so Caybl reads the current value and shows exactly what would change (before and after) without sending anything. Free, and cannot affect spend.
finalUrlNoNew landing page URL.
accountIdNoMicrosoft Advertising account id or account number (e.g. 'F123ABCD'), as listed by msads_list_accounts. Only needed when the sign-in can reach more than one account.
adGroupIdYesAd group id, from msads_get_ad_groups.
headlinesNo3 to 15 headlines, each 1 to 30 characters (count them: longer ones are rejected) and all different.
descriptionsNo2 to 4 descriptions, each 1 to 90 characters (count them: longer ones are rejected) and all different.
pinnedHeadlinesNoHeadlines to pin to a fixed position (1 = first, up to 3); several can share a position and Microsoft rotates them.
pinnedDescriptionsNoDescriptions to pin to a fixed position (1 = first, up to 2); several can share a position and Microsoft rotates them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / pinnedDescriptions
      Added value: +{
      +  "description": "Descriptions to pin to a fixed position (1 = first, up to 2); several can share a position and Microsoft rotates them.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "position": {
      +        "maximum": 2,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "text": {
      +        "description": "One of the ad's descriptions, exactly as written.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "text",
      +      "position"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / pinnedHeadlines
      Added value: +{
      +  "description": "Headlines to pin to a fixed position (1 = first, up to 3); several can share a position and Microsoft rotates them.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "position": {
      +        "maximum": 3,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "text": {
      +        "description": "One of the ad's headlines, exactly as written.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "text",
      +      "position"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed7 schema fields changed
    • addedInput schema / properties / adGroupId / pattern
      Added value: +"^\\d+$"
    • changedInput schema / properties / descriptions / description
      Previous value: -"2 to 4 descriptions, each up to 90 characters and all different."New value: +"2 to 4 descriptions, each 1 to 90 characters (count them: longer ones are rejected) and all different."
    • addedInput schema / properties / descriptions / items / maxLength
      Added value: +90
    • addedInput schema / properties / descriptions / items / minLength
      Added value: +1
    • changedInput schema / properties / headlines / description
      Previous value: -"3 to 15 headlines, each up to 30 characters and all different."New value: +"3 to 15 headlines, each 1 to 30 characters (count them: longer ones are rejected) and all different."
    • addedInput schema / properties / headlines / items / maxLength
      Added value: +30
    • addedInput schema / properties / headlines / items / minLength
      Added value: +1
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that passing a headline/description list REPLACES the entire list, that pins are inherited by unchanged texts, that an empty pin list unpins everything, that editing a live ad re-enters Microsoft's review, and that the previous text and pins are returned for rollback. The destructiveHint=true annotation is corroborated rather than merely repeated, and the re-review consequence is exactly the kind of side effect an agent cannot infer from structured fields.

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?

Five tight sentences, front-loaded with the editable surface, then the highest-risk gotcha (list replacement), then pins, then the review consequence and rollback. No filler and nothing buried at the end that an agent needs before acting.

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?

Eleven parameters, no output schema, and the description covers the mutation semantics, the inheritance rules, the side effect on ad review, and what comes back from the call. There is no material gap for an agent to call this correctly or safely.

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%, so the baseline is 3, and the schema already documents character limits, item ranges and pin positions. The description does add genuinely new semantics the schema cannot express, namely replace-vs-merge for the list params and the pin inheritance/unpin-by-empty-list rule, which is a meaningful lift above baseline.

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 ("Change") and resource ("responsive search ad") and enumerates the editable surface: headlines, descriptions, pins, final URL, display paths. That surface plus the update framing cleanly separates it from msads_create_responsive_search_ad without the agent needing to open either schema.

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?

"Use dryRun first" gives an explicit recommended workflow, and "Only what you pass is changed" tells the agent this is a partial update rather than a full replace. It stops short of naming alternatives (e.g. update_ad_status for pausing, create_responsive_search_ad for new ads), so the when-not guidance is inferred rather than stated.

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