Merchant Center: Create Data Source
gmc_create_data_sourceCreate one API data source (feed) in a Google Merchant Center account: a primary product source, into which gmc_insert_product_input then submits products, or a supplemental product source for attribute overrides. The source is empty when created. A supplemental source only takes effect once the user links it to a primary source in Merchant Center (Products › Data sources › primary source › linked supplemental sources); this server does not change feed rules or links. Creates no file or scheduled feed. Needs a STANDARD or ADMIN login.
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": {
"display_name": "<display_name>",
"kind": "<kind>"
},
"name": "gmc_create_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | primary: a product source; supplemental: attribute overrides for products of a primary source. | |
| countries | No | Primary source only: target countries as two-letter codes. | |
| 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 | No | Feed label, usually the country code, e.g. FR. Required for supplemental; recommended for primary. | |
| display_name | Yes | Name shown under Products › Data sources. | |
| content_language | No | Two-letter content language, e.g. fr. Required for supplemental; recommended for primary. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | primary, supplemental, local_inventory, regional_inventory, promotion, product_review, merchant_review or other. | |
| input | Yes | Who writes the source: API, FILE, UI or AUTOFEED. | |
| fileName | No | The file name Google expects for an uploaded file. | |
| writable | Yes | True when products in it can be changed through gmc_update_product_input / gmc_insert_product_input (API input). | |
| accountId | Yes | Merchant Center account. | |
| countries | Yes | Target countries of a primary source, when set. | |
| feedLabel | No | Feed label of a product source. | |
| fetchable | Yes | True when Google fetches it from a URL or Google Sheet (gmc_fetch_data_source works). | |
| displayName | Yes | Name shown under Products › Data sources. | |
| dataSourceId | Yes | Numeric data source id. | |
| fetchSettings | No | Fetch schedule of a FETCH or GOOGLE_SHEETS source. | |
| fileInputType | No | UPLOAD, FETCH or GOOGLE_SHEETS for file sources. | |
| contentLanguage | No | Content language of a product source. | |
| takeFromDataSources | Yes | For a primary source: the sources its default rule reads attributes from — 'self' and linked supplemental sources. |