Skip to main content
Glama

LinkedIn Ad Library Scraper: Ads & Targeting · $0.80/1K

Google Trends

get_google_trends
Read-onlyIdempotent

Google Trends for any keyword: interest over time, average, peak and trend change, interest by country or region, and the top and rising related searches (with Breakout and +%). Any country, time range, category and search type (web, YouTube, News, Images, Shopping). Use for search interest over time and by region; for the ads a brand runs use search_google_ads; for live search results use search_web. Returns {items: [...]} with one object per result, for example: {"searchTerm":"bitcoin","geo":"Worldwide","timeRange":"today 12-m","average":37.9,"peakDate":"2026-02-01T00:00:00Z","trendChangePercent":-47.5,"interestOverTime":[{"date":"2025-11-30","value":41}],"interestByRegion":[{"geo":"SV","name":"El Salvador","value":100}],"relatedQueriesRising":[{"query":"bitcoin price prediction","value":"Breakout"}]} Cost: pay per result (prices on the store page where you subscribed), or US$ 0.01 per call with x402 (1 keyword). Read-only: it only reads public data.

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": {
      "keyword": "<keyword>"
    },
    "name": "get_google_trends"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoCustom end date YYYY-MM-DD.
geoNoCountry (US, BR, GB...) or region code (US-CA, BR-SP). Empty = Worldwide.
maxNoTrending now: topics per country (1-200, default 20).
fromNoCustom start date YYYY-MM-DD (use with to; overrides time).
rowsNoCap each list (regions, metros, related queries) to this many rows (0 = all).
timeNoTime range (default today 12-m).
typeNoWhich Google search to measure (default web).
waitNoSeconds to wait for topics and cities from the browser queue (5-90, default 60). Measured 25 to 28 s per keyword on 29/11.
hoursNoTrending now window in hours (default 24).
activeNoTrending now: only topics still trending.
citiesNoInterest by city (name, 0-100 value and coordinates), like the city view of the Google Trends page. Same browser queue and same charge as topics (one per keyword for both); if not back in time, interestByCityStatus says so and they are free.
formatNosummary (default): one item per keyword. flat: one row per data point (interest_over_time, interest_by_region, related_query...).
metrosNoUS searches: interest by Nielsen metro area (210 DMAs).
topicsNoRelated topics (top and rising entities). They come from a separate browser queue: about 10 to 20 s per keyword; set wait to how long you accept. If not back in time, relatedTopicsStatus says so and they are free.
compareNoCompare the keywords (up to 5) on one chart and the same scale: one result with each term average, peak, trend change and the leader.
keywordYesKeyword or phrase. Comma-separate several (max 3 per call, to answer within 20 s); each one is a separate result.
regionsNoInterest by country or region (default true).
relatedNoTop and rising related searches (default true).
categoryNoGoogle Trends category number (0 = all, 7 = Finance, 71 = Food & Drink...).
languageNoLanguage of region names, Google hl code (default en-US).
trendingNoTrending now instead of keywords: what the country in geo is searching right now (no keyword needed).
categoriesNoTrending now: comma-separated categories by name or id (Sports or 17, Technology or 18, Entertainment or 4...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses the pricing model (pay per result or US$0.01/call via x402), the asynchronous browser-queue behavior for `topics`/`cities` with per-keyword latency estimates, and the fact that late results are free and signalled via relatedTopicsStatus/interestByCityStatus. The only deduction is that "Read-only: it only reads public data" merely restates readOnlyHint=true and destructiveHint=false rather than adding new information.

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 capability, then routing, then the return shape, then cost — a sensible priority order for a 22-parameter multi-mode tool. It runs long, but the length is largely earned by the payload example; the only padding is the redundant read-only sentence and the store-price aside, which is vague ("prices on the store page").

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, the description correctly supplies a concrete return example showing the item keys (searchTerm, geo, average, peakDate, trendChangePercent, interestOverTime, interestByRegion, relatedQueriesRising) and the {items: [...]} envelope. Combined with cost, latency and fallback-status disclosures, an agent has everything needed for a tool that has both keyword and trending-now modes.

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

Parameters3/5

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

Schema coverage is 100% and the schema already documents every parameter including enum meanings, defaults and queue semantics, so the description carries little extra burden. The few constraints it mentions (max 3 keywords per call, compare up to 5) are already present in the schema text, so it adds little beyond the baseline.

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 ("Google Trends for any keyword") and immediately enumerates the exact data surfaces: interest over time, average, peak, trend change, interest by country/region, related searches. It also names the dimensions it spans (country, time range, category, search type), which is enough for an agent to distinguish it from every sibling listed.

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 routes the agent: "Use for search interest over time and by region; for the ads a brand runs use search_google_ads; for live search results use search_web." That is an explicit when-to-use plus named alternatives with the selecting condition, not merely implied context.

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.