Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Google Trends for up to 5 keywords: over time, by region, related ($0.02)

get_google_trends

Retrieves Google Trends data for up to five keywords, including interest over time and by region plus related queries and topics, with selectable country, time range, category, and search type.

Instructions

Google Trends for 1 to 5 keywords in one call: interest over time (0-100 series), interest by region, related queries and related topics (top and rising). Any country or region, time range and category, for web, YouTube, news, images or shopping search. Not charged when Google has no data (404) or does not answer (502). Price: $0.02 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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
geoNoCountry (US) or region (US-CA); empty = worldwide
timeNonow 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m (default), today 5-y, all, or 'YYYY-MM-DD YYYY-MM-DD'
keywordYesSearch term, or up to 5 comma-separated terms to compare
categoryNoGoogle Trends category id, 0 (default) = all
propertyNoSearch type: web (default), youtube, news, images, froogle (shopping)
sectionsNoComma list, any of: interestOverTime,interestByRegion,relatedQueries,relatedTopics. Default: all four

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the commercial model: $0.02 USDC per call via x402 on Base, charged from the wallet in X402_PRIVATE_KEY, with no charge on 404 (no data) or 502 (no answer). That is exactly the kind of side-effect context an agent needs before spending funds, and it explains why readOnlyHint is false despite the call being a query.

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?

Dense and front-loaded: capability first, then coverage scope, then billing caveats. The only waste is the mild redundancy between "Not charged when Google has no data (404) or does not answer (502)" and the closing parenthetical "(not charged when the call fails)", which repeats the same guarantee.

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

Completeness4/5

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

With six parameters, no output schema and a pay-per-call model, the description covers inputs, cost, and failure billing thoroughly, and even sketches the return shape ("0-100 series"). The remaining gap is the structure of the region and related-queries/topics payloads, which an agent must discover by calling.

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 description coverage is 100%, so geo, time, category, property and sections are already fully documented with defaults and patterns. The description adds only the enforced 1-to-5 keyword limit and a high-level restatement of the sections; it does not add syntax or format meaning beyond the schema. Baseline 3 applies.

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 1 to 5 keywords") and enumerates exactly what comes back: interest over time, interest by region, related queries, related topics (top and rising). An agent can immediately tell this is the Google Trends data tool and not a news/web search sibling.

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?

Clear context for when to reach for it — comparing 1 to 5 terms in a single call, across any country/region, time range and category, for web/YouTube/news/images/shopping. It stops short of explicit exclusions or naming an alternative tool for single-keyword or non-Trends lookups, so it is strong but not fully routing-aware.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.