Skip to main content
Glama

SERP Volatility Sensor

serp_volatility_sensor

First call for a keyword set: unless the same search was stored in the last 24 hours, it only saves a baseline and returns no score; call again later (hours to days apart is most meaningful) to measure movement. Compares fresh SERPs of a keyword set with the previous observation of the same keywords, country and language to score rank turbulence. Each keyword is a live observation of the top 20 (up to 2 Google pages, 5 credits each). The score (0-10) is the share of expected organic clicks that changed hands, weighting each result by its position (position 1 counts about 40 times position 20), so turnover in positions 11-20 barely registers while a change at the top of the page does; levels are LOW below 3, MODERATE 3-5.4, HIGH 5.5-7.9 and EXTREME 8 or more, and every measured report states its method in score_method. The first observation only saves a baseline: it costs 5 credits per live Google page saved (at most 10 per keyword), counts toward the daily live-page allowance and carries NO volatility judgement (baseline_status insufficient_history, volatility_available false, overall_volatility_score, level and algorithm_update_likely null, plus a note); comparison starts with the next check, which measures real movement. A keyword with no saved baseline is instead compared at once with the newest stored observation of the same search from the last 24 hours, made by any tool (its baseline_source is stored_observation, previous_observed_at says when); such a keyword is billed like a first observation, 5 credits per live page. algorithm_update_likely is a heuristic, set only when the overall score is 5.5 or more over at least 3 compared keywords. Each keyword is compared over the depth both observations cover (compared_depth); every listed change has status new, dropped or moved, a null position where the observation does not hold the domain, and movement (previous minus current, positive = up) only when moved. new and dropped mean entering or leaving the compared positions, not proof of a wider ranking change; confidence low with comparison_limits tail_only marks entries and exits found only below position 8, which Google's later pages vary between sessions. A baseline that shares at most one first-page site with the current page is another page (comparison_limits baseline_mismatch): that keyword is left out of the score and billed as a first check; one observed less than an hour earlier is flagged baseline_recent (low confidence). If every keyword is left out because Google corrected it, the report says so per keyword and in query_corrected/note; no comparison is delivered, the call costs 0 credits and consumes 0 daily live-page allowance, even though live_pages reports pages actually fetched. market_check says whether the country the results are for is confirmed: confirmed (market_evidence.method says by what: page_data or page_footer, Google's own page states it; provider_echo, the search provider states the country it searched), or unconfirmed (nothing states it; the page is returned but never recorded as a rank observation). A page produced for another country is discarded and fetched again; MARKET_MISMATCH means no fetch gave the requested country. This tool always fetches live, because it compares now with its saved baseline: it takes no freshness or max_age_seconds. The result is returned here and may also be kept for up to 30 days as a completed run: retained.run_id reads it again for free with scraper_run_get (retained.available false says why it was not kept). Saved synchronous results can be evicted earlier when storage is needed; set background true (with an idempotency_key) to start the work as a saved run at once. If the call would outlast the connection (many items, deep or fresh SERPs) or the platform has no free capacity, it is not failed: the result is an accepted answer (accepted true, run_id, state, next_step) and the work runs as a saved run; ask scraper_run_get about run_id (view status) as often as retry_after_seconds says. A batch tool's run is charged item by item as each item finishes (failed items are free); any other run once, when it completes. The same idempotency_key prevents a second charge during its retry window; a later new call may be charged.

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": {
      "country": "<country>"
    },
    "name": "serp_volatility_sensor"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryYesTwo-letter country code of a supported market; see GET /api/v1/serp/markets. Baselines are kept per keyword, country and language.
keywordsNoKeywords to sample (1-100). Omitted selects the starter sample of 8 keywords (seo software, cloud hosting, insurance quotes, best credit cards, mortgage rates, cheap flights, crm tools, python tutorial): up to 80 credits per comparison (8 keywords x 2 Google pages x 5 credits) and 80 credits for a first baseline (5 credits per page saved). Pass your own keywords to avoid it.
languageNoResult language (Google hl). Defaults to the market's own language; markets served through the managed SERP API accept any language code, e.g. en for English results in DE.
verbosityNoconcise: short summary of the answer; full: the whole answer. Only shapes the output. Send idempotency_key to read the other form later without a new charge.
backgroundNoOptional. true starts this work as a saved background run and answers at once with run_id instead of the result; read it with scraper_run_get. Needs an idempotency_key: the same key returns the same run and never charges twice, for the 30 days the run is kept. Charged like the direct call, as the run's work completes. Without it, a call that would take too long is also answered as a saved run.
project_idNoOptional: a project of this organization (projects_list shows them). The result is then linked to the project's saved keywords that it observed, so saved_keyword_get can answer from it later, and it carries project_link (the saved keywords matched). Costs nothing extra. Omit it for a call that belongs to no project.
idempotency_keyNoOptional retry key bound to this customer and these arguments. Matching retries replay the first result and do not reserve a second credit; the replay says so in billing (replayed true, credits_charged_this_call 0, original_credits_used).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / keywords / description
      Previous value: -"Keywords to sample (1-100). Omitted selects the starter sample of 8 keywords (seo software, cloud hosting, insurance quotes, best credit cards, mortgage rates, cheap flights, crm tools, python tutorial): up to 80 credits per comparison (8 keywords x 2 Google pages x 5 credits); the first check of each keyword is free. Pass your own keywords to avoid it."New value: +"Keywords to sample (1-100). Omitted selects the starter sample of 8 keywords (seo software, cloud hosting, insurance quotes, best credit cards, mortgage rates, cheap flights, crm tools, python tutorial): up to 80 credits per comparison (8 keywords x 2 Google pages x 5 credits) and 80 credits for a first baseline (5 credits per page saved). Pass your own keywords to avoid it."
  2. Changed1 schema field changed
    • changedInput schema / properties / keywords / description
      Previous value: -"Keywords to sample (1-100). Omitted selects the starter sample of 8 keywords (seo software, cloud hosting, insurance quotes, best credit cards, mortgage rates, cheap flights, crm tools, python tutorial): up to 80 credits per comparison (8 keywords x 2 Google pages x 5 credits) and 80 credits for a first baseline (5 credits per page saved). Pass your own keywords to avoid it."New value: +"Keywords to sample (1-100). Omitted selects the starter sample of 8 keywords (seo software, cloud hosting, insurance quotes, best credit cards, mortgage rates, cheap flights, crm tools, python tutorial): up to 80 credits per comparison (8 keywords x 2 Google pages x 5 credits); the first check of each keyword is free. Pass your own keywords to avoid it."
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Far beyond the annotations, the description discloses cost accounting (5 credits per live page, up to 10 per keyword, 0 credits and 0 daily allowance on a fully corrected query), baseline creation rules including the stored_observation fallback within 24h, credit charging timing for batch runs, idempotency replay windows, and the accepted-run escape hatch when the call would outlast the connection. It also explains confidence downgrades (tail_only, baseline_recent, baseline_mismatch), the algorithm_update_likely heuristic's threshold, and result retention limits. This is unusually complete behavioral disclosure for a metered, stateful tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single unbroken block of roughly 600 words with no headings or grouping, so cost, scoring, comparison limits, market confirmation and retention all run together. There is real redundancy: the first-observation-is-baseline rule and the 5-credits-per-page charge are each stated twice, and the baseline/insufficient_history null list repeats what the opening already said. Substantively rich but not front-loaded or disciplined.

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?

With no output schema and seven parameters on a stateful, metered tool, the description carries the full burden and meets it: it names the score scale and level bands, score_method, baseline_status, volatility_available, compared_depth, per-change status/movement fields, comparison_limits values, market_check evidence sources, retained/run_id and the accepted-response shape. An agent knows what it will get back in both the baseline and comparison cases.

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 still adds cross-parameter meaning — that verbosity only shapes output and can be re-read for free with the same idempotency_key, that background requires an idempotency_key and turns the call into a saved run, and that baselines are keyed per keyword, country and language. It largely restates the cost arithmetic already in the keywords schema description, which limits it to a 4.

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 opens with a precise verb and resource: it 'compares fresh SERPs of a keyword set with the previous observation of the same keywords, country and language to score rank turbulence', and immediately adds the key distinguishing trait that a first call only stores a baseline and returns no score. That baseline-measurement framing separates it from a plain SERP scraper and from the run-retrieval sibling it names (scraper_run_get). An agent can tell what this tool is for without opening the 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?

It gives concrete when-to-call guidance ('first call for a keyword set', 'call again later (hours to days apart is most meaningful)') and states that it takes no freshness or max_age_seconds because it always fetches live. It also routes to scraper_run_get for reading a saved run. What is missing is an explicit alternative for an agent that just wants raw SERP results (e.g. google_serp_scrape); the contrast is only implied.

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