Skip to main content
Glama

Web Reader & Search (Tanod)

get_topic_trends_attention

Read-onlyIdempotent

utilpeek: Use when an agent must tell if interest in a topic is rising or fading: Wikipedia, Hacker News and news over time. For the articles use news_search. Returns daily topic trends for 1 to 5 topics: Wikipedia page views per language, Hacker News counts, news mentions, with 7- and 28-day change, spike days, direction and share. Not Google Trends data. Public attention signals, not Google Trends or search volume. related: related Wikipedia topics ranked by page views; not search queries and not Google Trends data. Topic = top English Wikipedia hit (see article.title). Complete days to yesterday; news only for the last 14 days. Cached 6 h. Bad input is a 422 and an upstream failure a 503 or 504 (not charged). Typically 3 to 15 s (first call for a topic; cached for 6 hours). Price: USD 0.005. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/topic-trends-attention-api.html

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": {
      "topics": "<topics>"
    },
    "name": "get_topic_trends_attention"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLast day, YYYY-MM-DD (UTC), at most yesterday (later is clamped to it). Default: yesterday. The range is at most 365 days.
startNoFirst day, YYYY-MM-DD (UTC). Default: 90 days ending at `end`.
topicsYes1 to 5 topics (words or a name, up to 100 characters each). Each is resolved to the top English Wikipedia search hit, reported as `article.title`. Several topics are compared: each gets its relative share.
relatedNoDefault false. True (one topic only) adds `related`: up to 10 `top` and 10 `rising` related Wikipedia topics, ranked by page views; not search queries and not Google Trends data.
languagesNoWikipedia language codes, at most 6 (en, de, ja ...). Default: en plus the four most-read languages that have the article. A language without the article is listed under `languages_skipped`.

Output Schema

NameRequiredDescriptionDefault
endNo
daysNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
labelNo
startNo
methodNo
topicsNo
caveatsNo
relatedNo
warningsNo
comparisonNo
attributionNo
not_google_trendsNo
end_clamped_to_yesterdayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • removedInput schema / properties / end / default
      Removed value: -null
    • removedInput schema / properties / end / title
      Removed value: -"End"
    • removedInput schema / properties / languages / default
      Removed value: -null
    • changedInput schema / properties / languages / description
      Previous value: -"Optional Wikipedia language codes, at most 6 (en, de, ja ...). Default: en plus the four most-read languages that have the article. A language without the article is listed under `languages_skipped`."New value: +"Wikipedia language codes, at most 6 (en, de, ja ...). Default: en plus the four most-read languages that have the article. A language without the article is listed under `languages_skipped`."
    • removedInput schema / properties / languages / title
      Removed value: -"Languages"
    • removedInput schema / properties / related / default
      Removed value: -null
    • removedInput schema / properties / related / title
      Removed value: -"Related"
    • removedInput schema / properties / start / default
      Removed value: -null
    • removedInput schema / properties / start / title
      Removed value: -"Start"
    • removedInput schema / properties / topics / title
      Removed value: -"Topics"
    • removedInput schema / title
      Removed value: -"get_topic_trends_attentionArguments"
    • removedOutput schema / properties / caveats / items
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / comparison / properties
      Removed value: -{
      -  "basis": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "ranking": {
      -    "items": {
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  },
      -  "totals": {
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / related / properties
      Removed value: -{
      -  "end": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "label": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "min_views_30d": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "rising": {
      -    "items": {
      -      "properties": {
      -        "change_7d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "title": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "url": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "views_30d": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  },
      -  "skipped": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "start": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "top": {
      -    "items": {
      -      "properties": {
      -        "change_7d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "title": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "url": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "views_30d": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / topics / items
      Removed value: -{
      -  "properties": {
      -    "article": {
      -      "properties": {
      -        "alternatives": {
      -          "items": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "type": [
      -            "array",
      -            "null"
      -          ]
      -        },
      -        "disambiguation_page": {
      -          "type": [
      -            "boolean",
      -            "null"
      -          ]
      -        },
      -        "language": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "title": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "url": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "change": {
      -      "properties": {
      -        "hacker_news": {
      -          "type": [
      -            "object",
      -            "null"
      -          ]
      -        },
      -        "news": {
      -          "type": [
      -            "object",
      -            "null"
      -          ]
      -        },
      -        "wikipedia": {
      -          "type": [
      -            "object",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "daily": {
      -      "items": {
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "type": [
      -        "array",
      -        "null"
      -      ]
      -    },
      -    "errors": {
      -      "items": {
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "type": [
      -        "array",
      -        "null"
      -      ]
      -    },
      -    "found": {
      -      "type": [
      -        "boolean",
      -        "null"
      -      ]
      -    },
      -    "hacker_news": {
      -      "properties": {
      -        "comments": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "note": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "partial": {
      -          "type": [
      -            "boolean",
      -            "null"
      -          ]
      -        },
      -        "query": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "stories": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "news": {
      -      "properties": {
      -        "available": {
      -          "type": [
      -            "boolean",
      -            "null"
      -          ]
      -        },
      -        "coverage_start": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "mentions": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "unavailable_reason": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "note": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "share": {
      -      "properties": {
      -        "hacker_news_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "news_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "wikipedia_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "spike_days": {
      -      "properties": {
      -        "hacker_news": {
      -          "items": {
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "type": [
      -            "array",
      -            "null"
      -          ]
      -        },
      -        "news": {
      -          "items": {
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "type": [
      -            "array",
      -            "null"
      -          ]
      -        },
      -        "wikipedia": {
      -          "items": {
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "type": [
      -            "array",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "topic": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "trend": {
      -      "properties": {
      -        "basis": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "change_28d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "change_7d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "direction": {
      -          "enum": [
      -            "rising",
      -            "falling",
      -            "stable",
      -            "insufficient_data",
      -            null
      -          ],
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "direction_28d": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "stable_within_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "wikipedia": {
      -      "properties": {
      -        "languages": {
      -          "items": {
      -            "properties": {
      -              "language": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "title": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "views": {
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "type": [
      -            "array",
      -            "null"
      -          ]
      -        },
      -        "languages_skipped": {
      -          "items": {
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "type": [
      -            "array",
      -            "null"
      -          ]
      -        },
      -        "total_views": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / warnings / items
      Removed value: -{
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
  2. Changed3 schema fields changed
    • addedInput schema / properties / related
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Default false. True (one topic only) adds `related`: up to 10 `top` and 10 `rising` related Wikipedia topics, ranked by page views; not search queries and not Google Trends data.",
      +  "title": "Related"
      +}
    • addedOutput schema / properties / related
      Added value: +{
      +  "properties": {
      +    "end": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "label": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "min_views_30d": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "rising": {
      +      "items": {
      +        "properties": {
      +          "change_7d_pct": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "views_30d": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "skipped": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "start": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "top": {
      +      "items": {
      +        "properties": {
      +          "change_7d_pct": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "views_30d": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / warnings
      Added value: +{
      +  "items": {
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
  3. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive, so the safety profile is covered; the description still adds latency (3-15 s, first call), 6 h caching, price (USD 0.005), free quota (10 calls/IP/UTC day), and error semantics (422 bad input, 503/504 upstream not charged). That is meaningful operational context beyond the structured fields. It does not describe the shape of the returned trend metrics in depth, but an output schema exists to carry that.

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?

Front-loaded with the use case, which is good, but the Google Trends disclaimer is repeated three times ('Not Google Trends data', 'not Google Trends or search volume', 'not Google Trends data' again under `related`), and the `related` semantics are duplicated between prose and schema. The signal is dense and useful, but several sentences do not earn their place.

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?

For a paid, cached, open-world trends tool with five parameters and a full output schema, everything an agent needs to call it correctly is present: coverage windows, clamping behavior, latency, cost, quota, and error codes. Nothing material is missing given the output schema handles return values.

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 baseline is 3; the description adds real meaning by explaining that each topic is resolved to the top English Wikipedia hit reported as `article.title` and that multiple topics get relative shares, and by flagging `related` as one-topic-only and not search queries. Date-range and language-code mechanics are left to the schema, which already documents them fully.

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 ('tell if interest in a topic is rising or fading') plus the three underlying sources (Wikipedia, Hacker News, news), and explicitly rules out the most likely confusion ('Not Google Trends data'). An agent can distinguish this from news_search without opening any schema.

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

Usage Guidelines5/5

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

Names the sibling alternative with a condition: 'For the articles use news_search,' and scopes itself to attention/trend signals over time. It also bounds applicability by noting complete days only through yesterday and news only for the last 14 days, so the agent knows when this tool cannot answer.

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.