Skip to main content
Glama

Google Ads & Meta Ads

Merchant Center: Create Data Source

gmc_create_data_source

Create 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

NameRequiredDescriptionDefault
kindYesprimary: a product source; supplemental: attribute overrides for products of a primary source.
countriesNoPrimary source only: target countries as two-letter codes.
account_idNoNumeric Merchant Center account id, from gmc_list_accounts. May be left out when the connected login reaches exactly one account.
feed_labelNoFeed label, usually the country code, e.g. FR. Required for supplemental; recommended for primary.
display_nameYesName shown under Products › Data sources.
content_languageNoTwo-letter content language, e.g. fr. Required for supplemental; recommended for primary.

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.
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.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations (which only declare a non-read-only, non-idempotent, non-destructive open-world write): the created source is empty, no file or scheduled feed is produced, and feed rules/links are not touched by this server. The auth-level requirement and the manual linking step are exactly the side-effect context an agent needs before calling a mutation tool.

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 variant distinction, then layers constraints and side effects in short sentences with no filler. The parenthetical Merchant Center navigation path ("Products › Data sources › primary source › linked supplemental sources") is verbose but earns its place as actionable guidance for the human handoff.

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 non-idempotent mutation with 6 parameters and an output schema, the description covers purpose, variant choice, side effects, prerequisites, and auth level. Nothing an agent needs to decide whether and how to call it is missing; return-value details are correctly left to the output schema.

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 description coverage is 100%, so the baseline is 3; the description adds real meaning on top by explaining what a supplemental source is for and that it is inert until linked, which frames the meaning of the kind enum. It does not restate per-parameter formats (country codes, feed_label), leaving those to the already-rich schema.

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?

States a specific verb and resource ("Create one API data source (feed) in a Google Merchant Center account") and immediately disambiguates the two variants: primary product source versus supplemental source for attribute overrides. It also names the sibling that consumes the result (gmc_insert_product_input), so the agent can place the tool in a workflow without opening a schema.

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?

Gives clear conditions for choosing each kind and an explicit prerequisite (supplemental only takes effect after the user links it to a primary source in the Merchant Center UI), plus the STANDARD/ADMIN login requirement. It stops short of naming alternatives such as gmc_update_data_source for modifying an existing source or autofeed settings for scheduled feeds, so the exclusion set is only partially covered.

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