Skip to main content
Glama

SEO GSC Wizard MCP

Analyze GSC sampling / anonymization impact

analyze_sampling_impact
Read-only

Use this when the user asks how much of a property's traffic is hidden from query or page rows. Compares the per-day totals with the summed query rows and page rows; the gap is traffic no row carries. Per dimension, gap says why: anonymisedShare is traffic that belongs to no row at all (privacy-threshold anonymisation; the warehouse stores what the API returned, so it lacks those queries too) and truncatedShare is traffic in rows past the read cap (0 unless the cap was hit, null when the path cannot split the two). Shares are 0-1 fractions; missingClicksPercent is 0-100. note is written from these fields. Not for the totals themselves: use get_site_summary. The response dataSource says which path served the request. Date range is optional: omit startDate/endDate to analyze the last 28 settled days (data lags ~2-3 days).

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": {
      "siteUrl": "<siteUrl>"
    },
    "name": "analyze_sampling_impact"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateNoOptional. Window end as YYYY-MM-DD (e.g. 2026-05-31). You do NOT need to know today's date or the latest available date: omit this and the server uses the latest settled Search Console date (data lags ~2-3 days behind today). Never pass null or the string "null".
siteUrlYes
startDateNoOptional. Window start as YYYY-MM-DD (e.g. 2026-05-03). You do NOT need to know today's date. Omit BOTH startDate and endDate to analyze the last 28 settled days automatically (Search Console data lags ~2-3 days). Never pass null or the string "null".
searchTypeNoSearch type: web (default), image, video, news (the News tab), discover, googleNews (news.google.com), webMultimodal (Google Lens, Circle to Search and image uploads; data from 2026-02-20; not part of all), or all (web + image + video + news + discover combined, position impression-weighted, like the app's "All" filter). Discover, googleNews and webMultimodal carry no query dimension, so query-level results for them are empty; Discover and googleNews also carry no position: it reads null, not 0.web

Output Schema

NameRequiredDescriptionDefault
noteNo
rangeNo
totalsNo
siteUrlNo
warningNo
dataSourceNo
partialDaysNo
dataMaturityNo
pageSamplingNo
querySamplingNo
settledThroughNo
warehouseLatestDateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / searchType / description
      Previous value: -"Search type: web (default), image, video, news (the News tab), discover, googleNews (news.google.com), or all (web + image + video + news + discover combined, position impression-weighted, like the app's \"All\" filter). Discover and googleNews carry no query dimension, so query-level results for them are empty, and no position: it reads null, not 0."New value: +"Search type: web (default), image, video, news (the News tab), discover, googleNews (news.google.com), webMultimodal (Google Lens, Circle to Search and image uploads; data from 2026-02-20; not part of all), or all (web + image + video + news + discover combined, position impression-weighted, like the app's \"All\" filter). Discover, googleNews and webMultimodal carry no query dimension, so query-level results for them are empty; Discover and googleNews also carry no position: it reads null, not 0."
    • changedInput schema / properties / searchType / enum
      Previous value: -[
      -  "web",
      -  "image",
      -  "video",
      -  "news",
      -  "discover",
      -  "googleNews",
      -  "all"
      -]New value: +[
      +  "web",
      +  "image",
      +  "video",
      +  "news",
      +  "discover",
      +  "googleNews",
      +  "webMultimodal",
      +  "all"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / searchType / description
      Previous value: -"Search type: web (default), image, video, news (the News tab), discover, googleNews (news.google.com), or all (web + image + video + news + discover combined, position impression-weighted, like the app's \"All\" filter). Discover and googleNews carry no query dimension, so query-level results for them are empty."New value: +"Search type: web (default), image, video, news (the News tab), discover, googleNews (news.google.com), or all (web + image + video + news + discover combined, position impression-weighted, like the app's \"All\" filter). Discover and googleNews carry no query dimension, so query-level results for them are empty, and no position: it reads null, not 0."
  3. Changed2 schema fields changed
    • addedInput schema / properties / searchType / description
      Added value: +"Search type: web (default), image, video, news (the News tab), discover, googleNews (news.google.com), or all (web + image + video + news + discover combined, position impression-weighted, like the app's \"All\" filter). Discover and googleNews carry no query dimension, so query-level results for them are empty."
    • changedInput schema / properties / searchType / enum
      Previous value: -[
      -  "web",
      -  "image",
      -  "video",
      -  "news"
      -]New value: +[
      +  "web",
      +  "image",
      +  "video",
      +  "news",
      +  "discover",
      +  "googleNews",
      +  "all"
      +]
  4. Changed9 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • changedOutput schema / properties / dataMaturity / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dateBasis": {
      -        "$ref": "#/properties/siteUrl"
      -      },
      -      "firstIncompleteDate": {
      -        "$ref": "#/properties/siteUrl"
      -      },
      -      "note": {
      -        "$ref": "#/properties/siteUrl"
      -      },
      -      "probe": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "dataState": {
      -                "$ref": "#/properties/siteUrl"
      -              },
      -              "endDate": {
      -                "$ref": "#/properties/siteUrl"
      -              },
      -              "searchType": {
      -                "$ref": "#/properties/siteUrl"
      -              },
      -              "startDate": {
      -                "$ref": "#/properties/siteUrl"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "settledThrough": {
      -        "$ref": "#/properties/siteUrl"
      -      },
      -      "source": {
      -        "$ref": "#/properties/siteUrl"
      -      },
      -      "warehouseCutoff": {
      -        "$ref": "#/properties/siteUrl"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "dateBasis": {
      +        "$ref": "#/properties/siteUrl"
      +      },
      +      "firstIncompleteDate": {
      +        "$ref": "#/properties/siteUrl"
      +      },
      +      "note": {
      +        "$ref": "#/properties/siteUrl"
      +      },
      +      "probe": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "dataState": {
      +                "$ref": "#/properties/siteUrl"
      +              },
      +              "endDate": {
      +                "$ref": "#/properties/siteUrl"
      +              },
      +              "searchType": {
      +                "$ref": "#/properties/siteUrl"
      +              },
      +              "startDate": {
      +                "$ref": "#/properties/siteUrl"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "settledThrough": {
      +        "$ref": "#/properties/siteUrl"
      +      },
      +      "source": {
      +        "$ref": "#/properties/siteUrl"
      +      },
      +      "warehouseCutoff": {
      +        "$ref": "#/properties/siteUrl"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / pageSampling / $ref
      Added value: +"#/properties/querySampling"
    • removedOutput schema / properties / pageSampling / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "missingClicksPercent": {
      -        "$ref": "#/properties/range/anyOf/0/properties/days"
      -      },
      -      "missingImpressionsPercent": {
      -        "$ref": "#/properties/range/anyOf/0/properties/days"
      -      },
      -      "rowCount": {
      -        "$ref": "#/properties/range/anyOf/0/properties/days"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / partialDays
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / querySampling / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "missingClicksPercent": {
      -        "$ref": "#/properties/range/anyOf/0/properties/days"
      -      },
      -      "missingImpressionsPercent": {
      -        "$ref": "#/properties/range/anyOf/0/properties/days"
      -      },
      -      "rowCount": {
      -        "$ref": "#/properties/range/anyOf/0/properties/days"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "gap": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "anonymisedImpressionsShare": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days"
      +              },
      +              "anonymisedShare": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days",
      +                "description": "hiddenClicks / totalClicks, a 0-1 fraction."
      +              },
      +              "capHit": {
      +                "type": [
      +                  "boolean",
      +                  "null"
      +                ]
      +              },
      +              "hiddenClicks": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days",
      +                "description": "Clicks no row of the dimension carries."
      +              },
      +              "hiddenImpressions": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days"
      +              },
      +              "rowCap": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days"
      +              },
      +              "rowClicks": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days",
      +                "description": "Clicks over every row of the dimension; null when unknown."
      +              },
      +              "rowImpressions": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days"
      +              },
      +              "rowsTotal": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days",
      +                "description": "Rows of the dimension; null when unknown."
      +              },
      +              "totalClicks": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days"
      +              },
      +              "totalImpressions": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days"
      +              },
      +              "truncatedImpressionsShare": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days"
      +              },
      +              "truncatedShare": {
      +                "$ref": "#/properties/range/anyOf/0/properties/days",
      +                "description": "0-1 share of clicks in rows past rowCap: 0 when the cap was not hit, null when the path cannot split it."
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "missingClicksPercent": {
      +        "$ref": "#/properties/range/anyOf/0/properties/days"
      +      },
      +      "missingImpressionsPercent": {
      +        "$ref": "#/properties/range/anyOf/0/properties/days"
      +      },
      +      "rowCount": {
      +        "$ref": "#/properties/range/anyOf/0/properties/days"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / range / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "days": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "endDate": {
      -        "$ref": "#/properties/siteUrl"
      -      },
      -      "startDate": {
      -        "$ref": "#/properties/siteUrl"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "days": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "endDate": {
      +        "$ref": "#/properties/siteUrl"
      +      },
      +      "startDate": {
      +        "$ref": "#/properties/siteUrl"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / totals / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "clicks": {
      -        "$ref": "#/properties/range/anyOf/0/properties/days"
      -      },
      -      "impressions": {
      -        "$ref": "#/properties/range/anyOf/0/properties/days"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "clicks": {
      +        "$ref": "#/properties/range/anyOf/0/properties/days"
      +      },
      +      "impressions": {
      +        "$ref": "#/properties/range/anyOf/0/properties/days"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / warning
      Added value: +{
      +  "$ref": "#/properties/siteUrl"
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties / warehouseLatestDate
      Added value: +{
      +  "$ref": "#/properties/siteUrl"
      +}
  6. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only safety, but the description goes well beyond them: it discloses the ~2-3 day data lag, that the warehouse stores only what the API returned (so anonymized queries are absent downstream), that truncatedShare is 0 unless the read cap was hit and null when the path cannot split the two, and that dataSource identifies the serving path.

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 trigger, then the mechanism, then the field semantics and the alternative routing, which is the right order for an agent. It is information-dense but a few backtick-laden field explanations could be trimmed since an output schema already exists.

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?

Complete for a moderately complex read-only analysis tool: trigger, mechanism, null/zero semantics per field, unit conventions (0-1 fractions vs 0-100 percent), default window, and data lag are all covered. The output schema exists, so the extra return-value detail is bonus rather than a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds essentially nothing about the four parameters beyond what the schema already documents at 75% coverage; the default 28-day window and the YYYY-MM-DD handling it mentions are already spelled out in the startDate/endDate descriptions. The richer text is about response fields (gap, truncatedShare, note), not inputs, so it does not extend parameter meaning.

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?

Opens with a specific verb+resource framing ('how much of a property's traffic is hidden from query or page rows') and explains the mechanism: comparing per-day totals against summed query rows and page rows, where the gap is traffic no row carries. It also explicitly distinguishes itself from get_site_summary, which returns the totals themselves.

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 trigger ('Use this when the user asks how much of a property's traffic is hidden...'), an explicit exclusion plus named alternative ('Not for the totals themselves: use get_site_summary'), and clarifies the default window behavior. An agent can route correctly without inspecting other tools.

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