Skip to main content
Glama

Parallel AI for Google Ads

Read-Only MIT Google Ads Script Configurator

generate_google_ads_script
Read-onlyIdempotent

Generate a ready-to-paste, read-only MIT-licensed Google Ads Script (AdsApp.search only; never mutates Google Ads) with validated CONFIG parameters for PMax placement bleed, MCC 30.4x budget pacing, wasted search terms, Shopping zombie SKUs, or conversion-drop watchdogs. Omit slug to list all 5 scripts and their configurable options.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_google_ads_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoScript slug to render. Omit to list all 5 available read-only MIT scripts and their configurable fields.
configNoOptional key-value overrides for CONFIG parameters (e.g., lookbackDays, minImpressions, minCost, sheetUrl, emailTo).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive and idempotent, so the bar is lower; the description still adds real value by naming the API surface (`AdsApp.search` only), asserting it never mutates Google Ads, and disclosing the MIT license and that CONFIG values are validated. It stops short of saying what happens when an override fails validation or how the script text is returned.

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?

Two sentences, front-loaded with the action and deliverable, with discovery guidance in the trailing sentence. The first sentence is dense with stacked qualifications (read-only, MIT-licensed, AdsApp.search only, never mutates) but each qualifier carries behavioral weight.

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

Completeness4/5

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

With a nested `config` object and no output schema, the description still covers the two invocation modes and the safety posture, which is most of what an agent needs. The main remainder is the return format: whether the tool returns raw script text, a file, or paste instructions is left implicit.

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 schema already documents both `slug` (enum of five) and `config` (key-value overrides with examples). The description adds only the semantic that overrides are validated against each script's configurable options, which is a small increment rather than new per-parameter meaning.

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 (Generate) and a specific deliverable (ready-to-paste, read-only MIT-licensed Google Ads Script) and enumerates the five script categories it covers. This clearly separates it from the analytical siblings (audit_, calculate_, estimate_, validate_) which compute results rather than emit script text.

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?

Gives an explicit branch instruction: 'Omit `slug` to list all 5 scripts and their configurable options', which tells the agent exactly how to discover options before rendering. It does not, however, tell the agent when to generate a script versus calling the close-sounding sibling estimate_pmax_waste_and_lead_quality or calculate_google_ads_budget_pacing.

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