Skip to main content
Glama

Google Ads & Meta Ads

Merchant Center: Insert Product Input

gmc_insert_product_input
DestructiveIdempotent

Submit one product input into an API data source of a Google Merchant Center account: into a primary API source, a product with its attributes (title, link, image, price with currency, availability, condition, brand, GTIN, …); into a supplemental API source the user has linked to a primary one, just the attributes to override for the product with the same offer_id, content_language and feed_label. An input that already exists in that source with the same identity is replaced as a whole, not merged — use gmc_update_product_input to change single attributes. Refused for file, sheet, UI and automatic sources. Google processes the input within minutes; verify with gmc_get_product. Needs a STANDARD or ADMIN login. The input's price and availability are live in Shopping ads once processed, so the call is a dry run by default: confirm=false reports the product's current values (if it exists) next to the ones that would be submitted, changing nothing; call again with confirm=true only after the user approves those exact values.

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": {
      "data_source": "<data_source>",
      "offer_id": "<offer_id>",
      "content_language": "<content_language>",
      "feed_label": "<feed_label>"
    },
    "name": "gmc_insert_product_input"
  }
}

Input Schema

NameRequiredDescriptionDefault
mpnNoManufacturer part number.
gtinNoGTIN(s), 8–14 digits each, replacing the current list.
linkNoLanding-page URL of the product (http/https).
brandNoBrand.
priceNoPrice as a decimal amount, e.g. 19.99; pass currency too.
titleNoProduct title.
confirmNofalse (default): dry run — reports the current value and what would change, changes nothing. true: submit the product input — set only after the user explicitly confirmed this exact change in this conversation.
currencyNoThree-letter ISO currency of price / sale_price, e.g. EUR.
offer_idYesThe merchant's offer id (SKU).
conditionNoItem condition.
account_idNoNumeric Merchant Center account id, from gmc_list_accounts. May be left out when the connected login reaches exactly one account.
feed_labelYesFeed label, e.g. FR.
image_linkNoMain image URL.
sale_priceNoSale price as a decimal amount; pass currency too.
data_sourceYesNumeric id of the API data source to write into, from gmc_list_data_sources or gmc_create_data_source.
descriptionNoProduct description.
mobile_linkNoMobile landing-page URL.
availabilityNoStock status.
product_typesNoThe merchant's own category paths, replacing the current list.
canonical_linkNoCanonical URL of the landing page.
custom_label_0NoCustom label 0 for campaign grouping.
custom_label_1NoCustom label 1 for campaign grouping.
custom_label_2NoCustom label 2 for campaign grouping.
custom_label_3NoCustom label 3 for campaign grouping.
custom_label_4NoCustom label 4 for campaign grouping.
content_languageYesTwo-letter content language, e.g. fr.
additional_image_linksNoFurther image URLs, replacing the current list.
google_product_categoryNoGoogle product category, as id or full path.

Output Schema

NameRequiredDescriptionDefault
dryRunYesTrue when confirm was not set: nothing was submitted.
previousNoDry run: each attribute's current value on the processed product, empty when unset or the product does not exist yet.
accountIdYesMerchant Center account.
productIdYescontentLanguage~feedLabel~offerId of the product the input feeds.
submittedYesEach attribute's value as submitted, as text.
attributesYesThe attribute arguments submitted.
processingYesTrue when the input was submitted (Google processes it asynchronously; verify with gmc_get_product); false on a dry run.
sourceKindYesprimary or supplemental.
dataSourceIdYesThe API data source written.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description explains the mechanism behind both: the input 'is replaced as a whole, not merged', and price/availability go live in Shopping ads once processed. It further discloses the auth requirement (STANDARD or ADMIN), processing latency, source-type refusals, and a default dry-run mode — far beyond what annotations convey, with no contradiction.

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-loads the core action and the destructive/dry-run warning before the detail, and every clause carries information. The first sentence is a heavy semicolon-chained run-on and the parenthetical attribute list ('title, link, image, price...') is partly redundant with the schema, costing some scanability.

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?

For a 28-parameter destructive write with an output schema, the description covers the gaps that matter: identity semantics, replacement vs merge, source eligibility, permission level, latency, verification path, and the safety confirmation workflow. Nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: offer_id + content_language + feed_label form the identity tuple, and in a supplemental source only the override attributes matter for a product with the same identity. It also clarifies that price/sale_price require currency. It does not enumerate the remaining attribute parameters, which the schema already documents.

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?

Names a specific verb and resource ('Submit one product input into an API data source of a Google Merchant Center account') and immediately splits the behavior between primary and supplemental API sources, which is the key semantic distinction for this operation. It also explicitly contrasts with gmc_update_product_input and gmc_get_product, so sibling disambiguation is handled in the description itself.

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

Usage Guidelines5/5

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

States when to use it (API sources, primary or supplemental), when not to (refused for file, sheet, UI and automatic sources), and which alternative to use for partial edits ('use gmc_update_product_input to change single attributes'). It also prescribes a verification step (gmc_get_product) and a two-step approval flow via confirm.

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