Skip to main content
Glama
Trends World

Trends World

trending_by_country

Retrieve ranked trending searches for a chosen country or region, including rank, source, and article URL. Use it to see what people are searching in a specific place and when the snapshot was taken.

Instructions

Return the ranked list of top trending searches for one country or region, newest snapshot first. Each entry carries its rank, the headline, the search-volume bucket the source itself reported (values like "200+" — these are buckets, not exact counts), the source that answered (google-trends, bing-news, wikipedia or baidu) and a URL for the article that ran it. The response also states the snapshot timestamp and which source answered for that place, so two countries measured by different sources are not comparable. If the name you pass is ambiguous the tool returns the matching ISO codes instead of guessing.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many ranked topics to return. Values are clamped to 1–20.
countryYesISO 3166-1 alpha-2 code ("JP", "BR") or a country name in English or Chinese ("Japan", "日本"). Partial names work when only one place matches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.1
    • changedInput schema / properties / country / description
      Previous value: -"ISO 3166-1 alpha-2 code, or English/Chinese country name"New value: +"ISO 3166-1 alpha-2 code (\"JP\", \"BR\") or a country name in English or Chinese (\"Japan\", \"日本\"). Partial names work when only one place matches."
    • addedInput schema / properties / country / examples
      Added value: +[
      +  "JP",
      +  "Japan",
      +  "日本"
      +]
    • addedInput schema / properties / country / title
      Added value: +"Country"
    • addedInput schema / properties / limit / default
      Added value: +10
    • changedInput schema / properties / limit / description
      Previous value: -"How many topics to return (default 10, max 20)"New value: +"How many ranked topics to return. Values are clamped to 1–20."
    • addedInput schema / properties / limit / maximum
      Added value: +20
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / limit / title
      Added value: +"Number of topics"
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does substantial work: it discloses the return fields, that volumes are source-reported buckets rather than exact counts, that the answering source is reported, and that the tool refuses to guess on ambiguous names by returning ISO codes. It omits auth/permission requirements and rate or freshness limits beyond 'newest snapshot first'.

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?

Four sentences, front-loaded with the core action, then progressively narrowing to output shape, comparability, and the ambiguity edge case. Some sentences are dense and pack multiple clauses (the entry-fields sentence in particular), but nothing is redundant.

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 no annotations, the description must explain both the return payload and the behavioral contract, and it does: it enumerates each entry's fields, names the possible sources, states that the snapshot timestamp and answering source are included, and covers the ambiguous-input path. An agent has enough to call this correctly and interpret the response.

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 already 100%, so the baseline is 3, but the description adds genuinely new semantics: it warns that limit values are clamped and explains the ambiguity fallback logic that determines whether 'country' yields results or ISO codes. The 'values like 200+' note clarifies what the volume field means, though that is return-side rather than parameter-side.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource — 'Return the ranked list of top trending searches for one country or region, newest snapshot first' — with the scoping constraint (single place) and ordering baked in. It does not name or contrast with the siblings (global_pulse, search_countries), so an agent must infer that this is the per-place variant, which keeps it below a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied rather than stated: the comparability caveat ('two countries measured by different sources are not comparable') tells the agent this is a single-place tool, and the ambiguity fallback tells it what happens when the input is vague. There is no explicit 'use this when' or named alternative for the global case.

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