Skip to main content
Glama
lokih1028
by lokih1028

topic_trend

Track how often terms appear in Hacker News story titles over time, returning per-term counts and per-1,000-story rates to compare rise and fall across periods.

Instructions

How often each term appears in story titles over time (whole-word match, trailing * for prefix match).

Returns a per-term summary plus a compact table: one row per period with
the period's story total, then each term's matching-story count and that
count per 1,000 stories (comparable across periods).
Good for "rise and fall" charts, e.g. terms=["rust", "go", "zig"].

Input Schema

NameRequiredDescriptionDefault
sinceNo
termsYes
untilNo
granularityNoyear

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the load and does well: it discloses matching behavior (whole-word, trailing * for prefix), the returned structure (per-term summary plus one row per period), and the normalization per 1,000 stories that makes periods comparable. It omits operational details like default time range when since/until are null and how granularity affects bucketing.

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?

Front-loaded with the core definition, then return shape, then a use case — every line is relevant. Slight verbosity in the return-shape sentence ('compact table: one row per period...') but no filler.

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

Completeness3/5

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

The absence of an output schema is offset by a solid description of the return format, and the absence of annotations is partly offset by disclosed matching behavior. However, the missing time-range and granularity semantics leave an agent unable to call it precisely for anything but the default case.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate. It adds real meaning for `terms` (whole-word vs prefix matching, example values) but says nothing about `since`, `until` (both untyped strings — format unknown), or `granularity` (the year/month enum and its effect on row bucketing), leaving three of four parameters undocumented.

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?

States a specific computation over a specific resource: per-term occurrence counts within story titles over time, with explicit matching semantics. It is clearly distinct from retrieval siblings like search_stories and get_thread because it returns aggregates rather than stories, though no sibling is named directly.

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 is only implied via 'Good for "rise and fall" charts' with an example query. There is no explicit statement of when to prefer this over search_stories or run_sql, and no exclusions or prerequisites.

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