Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Google News articles for any search or topic, with publisher URLs ($0.003)

search_google_news

Search Google News by query, topic, publication, or region and return headlines, publishers, decoded article URLs, and publish times, newest first. Filter by country, language, and time range.

Instructions

Google News for any search, topic, publication or region: headline, publisher, publisher article URL (decoded from the Google News link), publish time and related coverage, newest first. Any country edition and language, time range (1h to 1y) or exact dates. Up to 100 articles. Not charged when there are no articles (404) or Google News is down (502). Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_google_news"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSearch terms; Google News operators work ("exact phrase", OR, -word, site:reuters.com)
toNoOptional end date, exclusive
urlNoInstead of q: a news.google.com topic, publication or search page URL
fromNoOptional start date (replaces time)
timeNoTime range for q, default 7d
limitNoMax articles, 1-100, default 20
countryNoEdition country, default US
languageNoEdition language, default en
resolveUrlsNoDecode publisher URLs (default true); false is faster

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing pricing ($0.003 USDC per call), the payment rail (x402 on Base via X402_PRIVATE_KEY), and the exact failure-billing carve-outs (no charge on 404 no-articles or 502 Google News down). It also states result ordering (newest first) and the 100-article ceiling. The readOnlyHint=false value is implicitly explained by the wallet payment, so there is no contradiction.

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?

Three dense sentences, front-loaded with purpose and return fields before pricing details. The parenthetical-heavy payment clause is slightly dense but every element (price, rail, wallet env var, no-charge conditions) is actionable information rather than filler.

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?

There is no output schema, so the description carries the return-value burden, and it does so fully by naming the returned fields and their ordering. Payment and failure semantics complete the picture for a metered, open-world tool, leaving nothing an agent needs 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 description coverage is 100%, so the baseline is 3; the description adds meaning on top by tying 'decoded from the Google News link' to resolveUrls, 'Up to 100 articles' to limit, and 'time range (1h to 1y) or exact dates' to time/from/to. It does not explain precedence between q and url or between time and from, which keeps it below 5.

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-free but unambiguous resource statement: 'Google News for any search, topic, publication or region,' then enumerates the exact return fields (headline, publisher, decoded publisher URL, publish time, related coverage). An agent knows precisely what this tool produces and can distinguish it from sibling fetch/read tools like read_web_page.

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 clear context for use: any search, topic, publication or region, any country edition and language, a time range from 1h to 1y or exact dates. It does not name an alternative tool or state when not to use it, but the scope boundaries are concrete enough to route correctly.

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