Skip to main content
Glama
TwitterAPIs

twitterapis

twitter_trends

Read-only

Retrieve top trends for a location using a country name, ISO code, or WOEID. Omit location for worldwide trends, and use count to truncate the returned list.

Instructions

Get the current top trends for a location. With no location parameter, returns Worldwide (WOEID 1, X's own default). Pass country (an ISO code or country name, e.g. 'US' or 'Japan') or a numeric woeid from twitter_trends_locations; woeid wins when both are given. Returns the resolved location, the as_of / created_at timestamps, and the ranked trends list. Use count to truncate the list. A location X will not serve returns a 400.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoTruncate the returned trends list to at most this many. Omit to return X's full list for the location.
woeidNoNumeric WOEID from twitter_trends_locations. Takes precedence over country when both are supplied.
countryNoCountry name or ISO code to get trends for, e.g. 'US' or 'Japan'. Resolved against the trends locations list. Omit for Worldwide.
Behavior4/5

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

Annotations already declare this is a safe read operation. The description adds useful behavioral details: default Worldwide behavior, precedence rules, returned timestamps and resolved location, and count truncation. The final sentence about 'A location X will not serve returns a 400' is garbled and slightly undermines the transparency, but the overall behavioral picture is strong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately short and front-loaded with the core purpose. However, the final sentence is malformed ('A location X will not serve returns a 400') and does not communicate clearly, so not every sentence earns its place.

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?

For a read-only tool with no output schema, the description does a good job covering what the caller gets back: resolved location, as_of/created_at timestamps, and ranked trends. It also covers defaults and parameter precedence, making it largely self-sufficient, though the error-case sentence needs repair for full clarity.

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 schema carries the parameter definitions. The description adds value by clarifying inter-parameter behavior: woeid precedence over country, country resolution against the locations list, omission meaning Worldwide, and count truncation semantics. This goes beyond a simple restatement of the schema fields.

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?

The description opens with a specific verb and resource: 'Get the current top trends for a location.' This clearly distinguishes the tool from siblings like twitter_trends_locations, which is about available locations rather than the trends themselves.

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?

The description provides clear usage context: no location returns Worldwide, country or woeid can be used, and woeid wins if both are given. It implies the companion tool twitter_trends_locations as the source for woeids, though it does not explicitly say 'use twitter_trends_locations to find WOEIDs'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TwitterAPIs/twitterapis-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server