Skip to main content
Glama

Google Ads & Meta Ads

Merchant Center: Update Data Source

gmc_update_data_source
DestructiveIdempotent

Change the settings of one data source (feed) of a Google Merchant Center account: its display name, and for a file Google fetches from a URL or a Google Sheet the fetch schedule (on/off, daily/weekly/monthly, time, weekday or day of month, time zone) and the fetch URL. Only the arguments passed change; feed rules, labels, countries, destinations and the fetch login (username/password, set in Merchant Center) are not touched. Uploaded files, UI-managed and automatic sources have no fetch settings — only their name can change. 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": {
      "data_source": "<data_source>"
    },
    "name": "gmc_update_data_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
fetch_uriNoNew URL Google fetches the file from (http, https, ftp, sftp) or the Google Sheet URL. A username/password for a protected URL is set in Merchant Center, not here.
account_idNoNumeric Merchant Center account id, from gmc_list_accounts. May be left out when the connected login reaches exactly one account.
fetch_timeNoTime of day HH:MM (24-hour) in fetch_time_zone.
data_sourceYesNumeric data source id, from gmc_list_data_sources.
display_nameNoNew display name.
fetch_enabledNoTurn the scheduled fetch on or off.
fetch_frequencyNodaily, weekly or monthly.
fetch_time_zoneNoIANA time zone of fetch_time, e.g. Europe/Paris.
fetch_day_of_weekNoWeekday for a weekly fetch, e.g. MONDAY.
fetch_day_of_monthNoDay 1–31 for a monthly fetch.

Output Schema

NameRequiredDescriptionDefault
kindYesprimary, supplemental, local_inventory, regional_inventory, promotion, product_review, merchant_review or other.
inputYesWho writes the source: API, FILE, UI or AUTOFEED.
changedYesThe arguments that were applied.
fileNameNoThe file name Google expects for an uploaded file.
writableYesTrue when products in it can be changed through gmc_update_product_input / gmc_insert_product_input (API input).
accountIdYesMerchant Center account.
countriesYesTarget countries of a primary source, when set.
feedLabelNoFeed label of a product source.
fetchableYesTrue when Google fetches it from a URL or Google Sheet (gmc_fetch_data_source works).
displayNameYesName shown under Products › Data sources.
dataSourceIdYesNumeric data source id.
fetchSettingsNoFetch schedule of a FETCH or GOOGLE_SHEETS source.
fileInputTypeNoUPLOAD, FETCH or GOOGLE_SHEETS for file sources.
contentLanguageNoContent language of a product source.
takeFromDataSourcesYesFor a primary source: the sources its default rule reads attributes from — 'self' and linked supplemental sources.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), it discloses the blast radius precisely: only passed arguments change, while feed rules, labels, countries, destinations, and the fetch login are untouched. It also flags that fetch settings do not exist for uploaded/UI-managed/automatic sources and names the required auth level. This is exactly the context an agent needs before invoking a destructive, idempotent mutation.

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 sentences, no filler. The core action is front-loaded, followed by scope-of-effect and source-type constraints, then the auth requirement last. Each sentence carries distinct decision-relevant information.

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 10-parameter mutation with an output schema and annotations already in place, the description supplies the missing pieces: partial-update behavior, non-effect on adjacent resources, which source types accept fetch settings, and the auth prerequisite. Nothing an agent needs to call this correctly is absent.

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 the baseline is 3, but the description adds genuine routing meaning: it groups the fetch parameters as applying only to URL-fetched files and Google Sheets, and clarifies that the fetch login is set in Merchant Center rather than via these arguments. That resolves ambiguity the flat schema cannot express.

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 and resource ("Change the settings of one data source (feed)") and enumerates exactly which settings are mutable: display name, fetch schedule, and fetch URL. It cleanly separates data-source types (file/Sheet vs uploaded/UI-managed/automatic), giving an agent a strong mental model, though it never names a sibling tool to contrast with.

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

Usage Guidelines4/5

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

"Only the arguments passed change" establishes partial-update semantics, and the sentence about uploaded/UI-managed/automatic sources with no fetch settings effectively tells the agent when the fetch_* parameters are inapplicable. The "STANDARD or ADMIN login" prerequisite is a useful gate. It stops short of pointing at alternatives such as the autofeed-settings sibling, but no explicit exclusion is stated either.

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