Skip to main content
Glama

SEO and Keyword Data API

Google Trends interest over time

google_trends
Read-onlyIdempotent

Google Trends interest over time for one keyword: a dated 0-100 series for a country or worldwide, past 7 days to 5 years, in one $0.045 GET. Use when you need search-interest trends, seasonality or demand direction for a keyword. Daily points for short windows, weekly for 12 months. A live call takes up to about 30 s. Bad input is free; upstream errors are not charged. Too little Google data gives an empty answer, which is still charged. Price: $0.045 per successful call, paid over x402 (USDC on Base); pass the payment in _meta["x402/payment"].

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": "google_trends"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryNoISO 3166-1 alpha-2 country code (us, gb, de, ...; uk = gb). Omit for worldwide.
keywordYesOne keyword or phrase (2-100 characters, no commas).
timeframeNoTime window. Default past_12_months.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent/openWorld annotations: latency (~30 s), pricing ($0.045 per successful call via x402 USDC on Base, payment passed in _meta), and asymmetric billing rules (bad input free, upstream errors free, empty results still charged). The empty-result-while-charged warning is exactly the kind of trap an agent needs to know before calling.

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 purpose, then usage, then operational facts, with essentially no filler. The only waste is the price being stated twice – once as 'in one $0.045 GET' and again in the closing pricing sentence.

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 carries the burden of describing the return value and does so ('dated 0-100 series', possible empty answer), while also covering cost, latency, and payment mechanics. Nothing needed to invoke or interpret this single-keyword tool is missing.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning the schema does not: resolution varies with window ('daily points for short windows, weekly for 12 months'), which tells the agent what granularity to expect from the timeframe enum. Country semantics ('or worldwide') duplicate the schema rather than extend it.

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 specific verb and resource ('Google Trends interest over time for one keyword') plus the exact shape of the result: a dated 0-100 series, one country or worldwide, 7 days to 5 years. The 'one keyword' scoping implicitly separates it from google_trends_compare and google_trends_by_region, so an agent can pick correctly without opening another 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?

Gives an explicit use case – 'search-interest trends, seasonality or demand direction for a keyword' – which is enough to match a user's intent. It stops short of naming alternatives (compare, by_region, related_queries) or stating when not to use it, so the routing is inferred rather than prescribed.

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.