Merchant Center: Insert Product Input
gmc_insert_product_inputSubmit 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
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | No | Manufacturer part number. | |
| gtin | No | GTIN(s), 8–14 digits each, replacing the current list. | |
| link | No | Landing-page URL of the product (http/https). | |
| brand | No | Brand. | |
| price | No | Price as a decimal amount, e.g. 19.99; pass currency too. | |
| title | No | Product title. | |
| confirm | No | false (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. | |
| currency | No | Three-letter ISO currency of price / sale_price, e.g. EUR. | |
| offer_id | Yes | The merchant's offer id (SKU). | |
| condition | No | Item condition. | |
| account_id | No | Numeric Merchant Center account id, from gmc_list_accounts. May be left out when the connected login reaches exactly one account. | |
| feed_label | Yes | Feed label, e.g. FR. | |
| image_link | No | Main image URL. | |
| sale_price | No | Sale price as a decimal amount; pass currency too. | |
| data_source | Yes | Numeric id of the API data source to write into, from gmc_list_data_sources or gmc_create_data_source. | |
| description | No | Product description. | |
| mobile_link | No | Mobile landing-page URL. | |
| availability | No | Stock status. | |
| product_types | No | The merchant's own category paths, replacing the current list. | |
| canonical_link | No | Canonical URL of the landing page. | |
| custom_label_0 | No | Custom label 0 for campaign grouping. | |
| custom_label_1 | No | Custom label 1 for campaign grouping. | |
| custom_label_2 | No | Custom label 2 for campaign grouping. | |
| custom_label_3 | No | Custom label 3 for campaign grouping. | |
| custom_label_4 | No | Custom label 4 for campaign grouping. | |
| content_language | Yes | Two-letter content language, e.g. fr. | |
| additional_image_links | No | Further image URLs, replacing the current list. | |
| google_product_category | No | Google product category, as id or full path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | True when confirm was not set: nothing was submitted. | |
| previous | No | Dry run: each attribute's current value on the processed product, empty when unset or the product does not exist yet. | |
| accountId | Yes | Merchant Center account. | |
| productId | Yes | contentLanguage~feedLabel~offerId of the product the input feeds. | |
| submitted | Yes | Each attribute's value as submitted, as text. | |
| attributes | Yes | The attribute arguments submitted. | |
| processing | Yes | True when the input was submitted (Google processes it asynchronously; verify with gmc_get_product); false on a dry run. | |
| sourceKind | Yes | primary or supplemental. | |
| dataSourceId | Yes | The API data source written. |