Skip to main content
Glama
AdMob Workflows MCP

AdMob Workflows MCP

ad_unit_create

Idempotent

Find or create an AdMob ad unit by app and name, returning whether it exists, was created with an adUnitId, or requires manual console steps when create access is unavailable.

Instructions

Find or create an ad unit in an AdMob app. Idempotent by app and name. Returns exists, created (with adUnitId), or manual_required with console steps when Google has not granted create access.

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": {
      "appId": "<appId>",
      "displayName": "<displayName>",
      "format": "<format>"
    },
    "name": "ad_unit_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdYes
formatYes
rewardTypeNo
displayNameYes
publisherIdNopub-… ; omit when the Google account has one AdMob account
rewardAmountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 covered. The description still adds real value by naming the idempotency key (app + name) and the three outcome states, including the manual_required fallback when create access is not granted. It omits any note on what happens to an existing unit when displayName matches, or whether reward fields are validated per format.

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?

Three short sentences with no filler: purpose first, then the idempotency contract, then the return/fallback states. Every sentence carries information an agent needs before calling.

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?

The lack of an output schema is partly offset by the description enumerating the exists / created / manual_required outcomes. However, for a six-parameter open-world mutation tool, the description never explains the format-dependent reward parameters or the relationship between appId, publisherId and the AdMob account, leaving a meaningful gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 17%; only publisherId carries a description and pattern, leaving appId, displayName, format, rewardType and rewardAmount undocumented. The description adds no parameter meaning at all, notably failing to say that rewardType/rewardAmount are presumably required for REWARDED and REWARDED_INTERSTITIAL formats, which is exactly the conditional detail the schema does not convey.

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 pair and resource ("Find or create an ad unit in an AdMob app") plus the scoping key (app and name), which clearly separates it from a read-only sibling like ad_units_list. It stops short of explicitly naming an alternative, but the find-or-create framing tells an agent what the tool resolves to.

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?

Usage is implied rather than stated: the idempotency-by-name claim signals this is the safe call when you don't know whether a unit already exists. There is no explicit when-not or named alternative, and nothing tells the agent whether to reach for ad_units_list first to check existing units.

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