getting-started-gmc8.42 KB
View saved version →
---
name: getting-started-gmc
description: Use on a first visit or setup recheck in the LoomaScale Google Merchant Center plugin. Show current Shopping eligibility and a product issue to review.
---
# Getting started with Google Merchant Center in LoomaScale
## Check connection and access
On this plugin’s `loomascale-gmc` connection, call `loomascale_list_data_sources` with `{}`, then `loomascale_get_user` with `{}`, even when the provider is disconnected. Use the Google Merchant Center row with `tools_in_current_plugin: true`. A focused plugin normally returns `all_sources: false`. Keep reporting and in-chat tasks scoped to this source. Save the full catalog for the dashboard links below.
Proceed with an active trial, the Free plan, a paid plan or legacy access. The Free plan (`readOnly: true`) never expires and allows reads within a weekly task allowance, so run the snapshot without asking the user to pay first, and offer changes as recommendations only. For a pending trial, tell the user before the first metered read that it starts the trial. With no connection, leave it pending. If a plan is required, show the returned plan link. If a check fails, offer sign-in or retry. Only start account discovery after verifying the provider connection and access. For any other state, show setup or a preview.
For `not_connected`, offer **🛍️ Connect Google Merchant Center** to check how many products are eligible for Shopping. Use the [Google Merchant Center icon](https://loomascale.com/icons/google-merchant-center-icon.svg) inside the button, or the glyph in text chat. Use its returned `connect_url` verbatim, falling back to `connections_url` or the [LoomaScale connections dashboard](https://loomascale.com/dashboard/connections). Use **Reconnect** for `needs_attention` and **Recheck** for an unknown or unavailable status. Let the user open the link, then offer **Recheck setup** to refresh both checks.
## Can my products appear in Google Shopping?
Discover merchant accounts with `gmc_list_accounts`. Use the intended merchant or sole eligible account with its numeric `account_id`. For an agency or multi-client account, resolve the relevant merchant or offer a compact choice before reading catalog data.
Call `gmc_get_account_health`. Pick one returned destination and country in scope. Caption a compact table **Product visibility now** with the merchant, market, destination and as-of date. Show the returned active, pending and disapproved counts. Mention one named issue and its reported impact if available. Destination and country totals may cover the same products. Current status alone cannot establish a weekly change.
If `productStatuses` is empty but `accountIssues` identifies a restriction, report its title, severity and returned destinations as the current finding. If neither yields a finding, try `gmc_query` on `product_performance_view` for clicks and impressions within one marketing method across the last two complete seven-day windows. Select `date`, `clicks` and `impressions`, filter by explicit dates and marketing method and compare periods only when coverage supports it. Otherwise report the verified current period or the read limitation.
## Help the user choose a next step
Keep the reply within one to two desktop chat screens. Open with one sentence about Google Merchant Center and one quiet line for connection and plan status. Mention a limit only if it affects the next step. Give roughly a quarter of the reply to the snapshot. Use a compact table and one plain-language observation grounded in the figures. Preserve the distinction between a verified zero and missing data. If discovery finds no reachable target or no usable data, give the specific limitation and a recovery action in place of the table.
Place one recommended button directly beneath the finding. For an account restriction, offer **Review the account issue**. For a product disapproval, offer **Review affected products**. For a feed processing issue, ofPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
loomascale-gmc4.18 KB
View saved version →
---
name: loomascale-gmc
description: Diagnose the user's connected Google Merchant Center (GMC) account with LoomaScale. Use for Google Shopping products not showing, product disapprovals, product feed diagnostics and errors, account health, Shopping ads and free listings performance, and requested changes to eligible settings, feeds or product data. Shipping and return policies are read-only. Do not invoke for general Shopping definitions, deleting products, approving products or managing ad campaigns.
---
# Google Merchant Center with LoomaScale
Answer product feed, disapproval and Google Shopping performance questions with
evidence from the user's connected Google Merchant Center (GMC) account. This
package connects to `https://api.loomascale.com/mcp/gmc`. Inspect available tool
descriptions and input schemas; a client may add a namespace to the tool names
used here.
## Resolve the account
Reuse an account already verified in the conversation. Otherwise call
`gmc_list_accounts` and pass the numeric `account_id`; it can be omitted when exactly
one account is reachable. Never substitute a Google Ads customer ID or a GA4
property ID.
## Choose the tool that answers the question
| Question | Tool |
| --- | --- |
| Which accounts can I access, and what are their settings? | `gmc_list_accounts`, `gmc_get_account_settings` |
| Why aren't my products showing? | `gmc_get_account_health`, then `gmc_query` on `product_view` |
| Which products earn clicks? | `gmc_query` on `product_performance_view` |
| Are my feeds working? | `gmc_list_data_sources`, `gmc_get_data_source` |
| What does one product look like, and can it be patched? | `gmc_get_product` |
| Shipping and return policies | `gmc_get_shipping_settings`, `gmc_list_return_policies` |
Read [Merchant Center tools](references/merchant-center.md) for MCQL, health
counts, and the exact rules for each change.
## Change the account only on the user's word
Keep diagnosis read-only. Never change anything as a side effect of an analysis.
Read current settings first, propose the exact change, and apply it only after
the user agrees. Website changes are a dry run until called with `confirm:true`
for the URL the user confirmed. Product writes are processed asynchronously:
report them as submitted and verify with `gmc_get_product` later. Nothing
deletes a product, feed, policy or claim; no tool takes a feed password.
## Handle access and helper tools accurately
- If authorization is missing, expired or lacks a permission, use the link the
tool returns or the [LoomaScale connections dashboard](https://loomascale.com/dashboard/connections).
A refusal that names the user's role is Google judging the login's access, not
something reconnecting fixes.
- For a plan or trial refusal, call `loomascale_get_user` once and explain the
plan, trial, task or account allowance it reports. That allowance is not an ad budget.
- On the Free plan (`readOnly: true` in `loomascale_get_user`) only reads work.
Use read tools and offer a change as a recommendation, not as an action you
can run. Never retry a Free plan refusal:
- A change refused because the plan is read-only: give the finding and the
recommended change, say that applying it needs a paid plan, and give the
dashboard link from the refusal.
- Weekly tasks used up: give the reset date from the message.
- Account or property allowance reached: say which account was refused
and when the allowance resets, as the message states. Listing or selecting accounts and reusing a
counted account spend nothing.
- `loomascale_request_feature` sends a message to the LoomaScale team. Call it
only when the user asks to send a feature request.
- `loomascale_list_data_sources` lists every source LoomaScale supports, which
are connected, and which this plugin has tools for. Use it when the user asks
about other platforms or connecting another service. It is free and connects
nothing: give the user the link it returns, Preview of the first 4,000 characters. Read full instructions →
Referenced files: 2 — file references are metadata, not package contents.