Skip to main content
Glama
A1-x-Tech

mcp-google-merchants

Update a product input

update_product_input

Update specific product attributes like price or availability without resending the entire product input. Sparse-updates only the fields you specify to reduce payload.

Instructions

Sparse-updates an existing product input — the cheap way to change price or availability without re-sending the whole product. data_source must be the source holding the input. update_mask is a comma-separated list of attribute paths (e.g. "productAttributes.price,productAttributes.availability"); when omitted, all populated fields of the request are applied. Returns the updated ProductInput; the processed product refreshes after async processing (minutes). To create a product or replace it wholesale use insert_product_input.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoMerchant Center account ID (digits, e.g. "123456"). Omit to use the GOOGLE_MERCHANTS_ACCOUNT_ID default.
data_sourceYesData source: numeric ID (e.g. "104628") or full name "accounts/{account}/dataSources/{id}". Product/promotion writes require an API-type data source (input: API), not a file feed.
update_maskNoComma-separated attribute paths to update, e.g. "productAttributes.price". Omit to apply every populated field of this request.
product_inputYesProduct input ID: "contentLanguage~feedLabel~offerId" or the base64url name.
version_numberNoOptional int64 freshness guard (as a string).
custom_attributesNoCustom (non-standard) attributes as {name, value} pairs.
product_attributesNoProduct attributes to change (camelCase), e.g. {"price": {"amountMicros": "8990000", "currencyCode": "USD"}, "availability": "out_of_stock"}.
Behavior4/5

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

Annotations already indicate readOnlyHint=false and destructiveHint=false, so mutation is expected. The description adds value by explaining sparse-update semantics, the behavior when update_mask is omitted (all populated fields applied), the return of the updated ProductInput, and the async refresh after minutes. This goes beyond the structured annotations, though it does not elaborate on failure modes or idempotency, which the annotations already flag.

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 dense sentences. The first sentence fronts the purpose and benefit. The second covers essential parameter semantics. The third states the return value, async behavior, and alternative tool. No filler, every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is moderately complex with 7 parameters and nested objects, and there is no output schema, so the description must cover return values. It does: 'Returns the updated ProductInput' and explains the async processing. It also mentions the data_source prerequisite and the insert alternative. It does not describe error handling or exhaustive edge cases, but for the complexity level it is sufficiently complete.

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 meaning by explaining data_source as 'the source holding the input' and update_mask as 'a comma-separated list of attribute paths' with the omission behavior. This enriches the schema definitions significantly, especially for the two most context-dependent parameters.

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?

The description uses a specific verb+resource: 'Sparse-updates an existing product input' and immediately clarifies it's the 'cheap way' to change price/availability without re-sending the whole product. It clearly distinguishes from insert_product_input for create/replace, and from delete_product_input by context. This is a model of purpose clarity.

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

Usage Guidelines5/5

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

Explicitly states when to use this tool: to change price or availability without re-sending the whole product. It names the alternative: 'To create a product or replace it wholesale use insert_product_input.' Also specifies a prerequisite: data_source must be the source holding the input. This is explicit use-vs-alternative guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-google-merchants'

If you have feedback or need assistance with the MCP directory API, please join our Discord server