Merchant Center: Get Data Source
gmc_get_data_sourceInspect one data source (feed) of a Google Merchant Center account: its kind and input type, feed label and language, fetch schedule, URL and username for a fetched file or Google Sheet (never the password), and — for file sources — the latest processed file: processing state, rows total/created/updated, when it ran, and the row-level issues Google found with counts and help links. Use it to check a feed after gmc_fetch_data_source or gmc_update_data_source, or when products went missing after a feed run. Read-only.
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>"
},
"name": "gmc_get_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Numeric Merchant Center account id, from gmc_list_accounts. May be left out when the connected login reaches exactly one account. | |
| data_source | Yes | Numeric data source id, from gmc_list_data_sources. |
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. | |
| latestUpload | No | The latest processed file of a file source; null for other inputs or when none was processed yet. | |
| 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. |