Skip to main content
Glama

Google product split

get_google_product_split
Read-onlyIdempotent

Google Shopping and Performance Max spend per Shopify product over the last 90 days, each product judged against its OWN break-even ROAS (from its real margin): which products earn money (move to a scaling campaign), break even (keep standard) or lose money (fix or pause), with spend, Google-reported conversion value and ROAS per product, plus the spend that cannot be split by product. Use for any question about which products to push or cut on Google, Shopping or Performance Max ROAS by product, or product-level ad profitability on Google. Search campaigns are not included. labelExport says whether these verdicts are already published as custom labels for the brand's feed tool (Channable, Merchant Center). Optional from and to (inclusive YYYY-MM-DD, both or neither) read another span instead of the last 90 days. Optional filters narrow it — category, collectionId, label (exact values from a first call's facets), inStockOnly, newOnly, bucket, search — and sort/dir reorder it: "my best products losing money on Google in category X" is bucket [loses], category [X], sort contributionMargin.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_google_product_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.
dirNo
fromNoFirst day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.
sortNo
labelNo
bucketNo
searchNo
newOnlyNo
categoryNo
inStockOnlyNo
collectionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."New value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
    • changedInput schema / properties / to / description
      Previous value: -"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."New value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
  2. Changed9 schema fields changed
    • addedInput schema / properties / bucket
      Added value: +{
      +  "items": {
      +    "enum": [
      +      "earns",
      +      "breaksEven",
      +      "loses",
      +      "notEnoughData",
      +      "noMargin"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / category
      Added value: +{
      +  "items": {
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / collectionId
      Added value: +{
      +  "items": {
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / dir
      Added value: +{
      +  "enum": [
      +    "asc",
      +    "desc"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / inStockOnly
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / label
      Added value: +{
      +  "items": {
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / newOnly
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / sort
      Added value: +{
      +  "enum": [
      +    "spend",
      +    "roas",
      +    "breakEvenGap",
      +    "marginPct",
      +    "netRevenue",
      +    "contributionMargin",
      +    "stock"
      +  ],
      +  "type": "string"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real value on top: verdict logic is margin-based break-even ROAS, there are three actionable outcomes, and some spend cannot be attributed to a product. One flaw: it says the default window is the last 90 days, while the `from`/`to` schema says the default is the operator's on-screen period or last 30 days, so the caller can't be sure which span they get by default.

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-loaded with the core purpose and the decision framework before any parameter talk, which is the right ordering. It is dense and long for a description — the trailing worked-example sentence and the Channable/Merchant Center parenthetical could be tightened — but almost every clause carries information an agent would otherwise have to guess.

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

Completeness3/5

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

For an 11-parameter, no-output-schema tool it covers the return shape reasonably (per-product spend, conversion value, ROAS, unsplittable spend, labelExport publication status). Left open are pagination/row limits, the meaning of several sort keys and bucket values, and — most importantly — the conflicting statement about the default time window.

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 only 18%, so the description must carry the load, and it largely does: it explains the paired from/to rule (both or neither), names every filter (category, collectionId, label, inStockOnly, newOnly, bucket, search), and clarifies that label/collection values should come from a first call's facets. It falls short on the enum vocabularies — sort values like breakEvenGap, netRevenue and marginPct, and the notEnoughData/noMargin buckets, are never explained.

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 concrete verb-and-resource: Google Shopping and Performance Max spend per Shopify product, judged against each product's own break-even ROAS derived from its margin. It explicitly bounds scope ("Search campaigns are not included") and names the output concepts (spend, conversion value, ROAS, unsplittable spend, verdict buckets), which cleanly separates it from the other get_google_* and get_product_* siblings.

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?

Gives an explicit when-to-use clause ("any question about which products to push or cut on Google, Shopping or Performance Max ROAS by product, or product-level ad profitability") plus an exclusion for Search campaigns. It goes further by mapping a concrete natural-language query ("my best products losing money on Google in category X") onto the exact bucket/category/sort arguments.

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