agent.json
{
"id": "agentrove.trend-research",
"name": "Trend Research",
"version": "0.1.4",
"license": "MIT",
"summary": "Reads RSS/Atom feeds you choose and the public Hacker News search API, then reports which terms and two-word phrases are rising between two time windows, with the source URLs behind every term. No HTML scraping.",
"sdk_import": "../../../sdk/index.js",
"entry": { "module": "src/index.js", "cli": "bin/cli.js", "mcp": "bin/mcp.js" },
"tools": [
{
"name": "parse_feeds",
"description": "Parse RSS 2.0, RSS 1.0 (RDF) or Atom feed XML that you supply into source_list items (url, title, published_at, excerpt, source_name). No network access.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"additionalProperties": false,
"required": ["feeds"],
"properties": {
"feeds": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["xml"],
"properties": {
"xml": { "type": "string", "minLength": 1, "maxLength": 5000000 },
"url": { "type": "string", "maxLength": 2048, "description": "The feed's own URL, used to resolve relative links and for provenance." }
}
}
},
"max_items_per_feed": { "type": "integer", "minimum": 1, "maximum": 5000 }
}
},
"output_schema": {
"type": "object",
"required": ["items", "feeds"],
"properties": {
"items": {
"type": "array",
"items": { "type": "object", "required": ["url", "title"], "properties": { "url": { "type": "string" }, "title": { "type": "string" }, "published_at": { "type": "string" }, "excerpt": { "type": "string" }, "source_name": { "type": "string" } } }
},
"feeds": { "type": "array", "items": { "type": "object", "required": ["ok"], "properties": { "ok": { "type": "boolean" }, "error": { "type": "string" } } } },
"parsed_at": { "type": "string" }
}
}
},
{
"name": "fetch_feeds",
"description": "Fetch RSS/Atom feeds over https, but only from the exact hostnames you list in allowed_hosts (no wildcards, IP addresses or local names). Redirects are re-checked against the same list. HTML responses are rejected, never scraped.",
"side_effects": "external_read",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"additionalProperties": false,
"required": ["urls", "allowed_hosts"],
"properties": {
"urls": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "type": "string", "maxLength": 2048 } },
"allowed_hosts": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "type": "string", "maxLength": 253 } },
"max_bytes_per_feed": { "type": "integer", "minimum": 1000, "maximum": 10000000 },
"max_items_per_feed": { "type": "integer", "minimum": 1, "maximum": 5000 }
}
},
"output_schema": {
"type": "object",
"required": ["items", "feeds", "fetched_at"],
"properties": {
"items": {
"type": "array",
"items": { "type": "object", "required": ["url", "title"], "properties": { "url": { "type": "string" }, "title": { "type": "string" }, "published_at": { "type": "string" } } }
},
"feeds": { "type": "array", "items": { "type": "object", "required": ["url", "ok"], "properties": { "url": { "type": "string" }, "ok": { "type": "boolean" }, "error": { "type": "string" } } } },
"fetched_at": { "type": "string" }
}
}
},
{
"name": "fetch_hn",
"description": "Search Hacker News stories by date through the public Algolia HN API (hn.algolia.com) and return them as source_list items. Points and comment counts are copied from the API, never estimated.",
"side_effects": "external_read",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"additionalProperties": false,
"required": ["query"],
"properties": {
"query": { "type": "string", "minLength": 1, "maxLength": 200 },
"from": { "type": "string", "format": "date-time" },
"to": { "type": "string", "format": "date-time" },
"tags": { "enum": ["story", "show_hn", "ask_hn", "front_page"] },
"max_hits": { "type": "integer", "minimum": 1, "maximum": 1000 }
}
},
"output_schema": {
"type": "object",
"required": ["items", "query", "fetched_at", "notes"],
"properties": {
"items": { "type": "array", "items": { "type": "object", "required": ["url", "title"] } },
"query": { "type": "object" },
"fetched_at": { "type": "string" },
"total_hits": { "type": "integer" },
"notes": { "type": "array", "items": { "type": "string" } }
}
}
},
{
"name": "analyze_trends",
"description": "Compare term and bigram frequencies between a baseline window and a current window over source_list items (stopwords removed, per-item counting, minimum-count threshold, smoothed change ratio). Every reported term lists the source URLs that mention it.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"additionalProperties": false,
"required": ["items"],
"properties": {
"items": {
"type": "array",
"maxItems": 20000,
"items": {
"type": "object",
"required": ["url", "title"],
"properties": {
"url": { "type": "string", "maxLength": 2048 },
"title": { "type": "string", "maxLength": 2000 },
"published_at": { "type": "string" },
"excerpt": { "type": "string", "maxLength": 20000 },
"source_name": { "type": "string" }
}
}
},
"current": { "type": "object", "required": ["start", "end"], "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } } },
"baseline": { "type": "object", "required": ["start", "end"], "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } } },
"window_days": { "type": "integer", "minimum": 1, "maximum": 365 },
"min_count": { "type": "integer", "minimum": 1, "maximum": 1000 },
"max_terms": { "type": "integer", "minimum": 1, "maximum": 500 },
"max_sources_per_term": { "type": "integer", "minimum": 1, "maximum": 100 },
"include_bigrams": { "type": "boolean" },
"merge_plurals": { "type": "boolean", "description": "Count regular plurals with their singular (\"server\" and \"servers\" are one term). Default true." },
"direction": { "enum": ["rising", "all"] },
"fields": { "type": "array", "minItems": 1, "items": { "enum": ["title", "excerpt"] } },
"stopwords_extra": { "type": "array", "maxItems": 500, "items": { "type": "string", "maxLength": 60 } }
}
},
"output_schema": {
"type": "object",
"required": ["report"],
"properties": {
"report": {
"type": "object",
"required": ["window", "generated_at", "terms", "notes"],
"properties": {
"window": { "type": "object", "required": ["baseline", "current"] },
"generated_at": { "type": "string", "format": "date-time" },
"terms": {
"type": "array",
"items": {
"type": "object",
"required": ["term", "count", "change", "sources"],
"properties": {
"term": { "type": "string" },
"kind": { "enum": ["unigram", "bigram"] },
"count": { "type": "integer", "minimum": 1 },
"baseline_count": { "type": "integer", "minimum": 0 },
"change": { "type": "number" },
"status": { "enum": ["new", "rising", "steady", "falling"] },
"sources": { "type": "array", "minItems": 1, "items": { "type": "string" } },
"variants": { "type": "array", "items": { "type": "string" }, "description": "Other spellings counted as this term (for example the plural)." }
}
}
},
"notes": { "type": "array", "items": { "type": "string" } }
}
}
}
}
}
],
"permissions": {
"filesystem": "none",
"network": ["hn.algolia.com"],
"credentials": [],
"user_supplied_hosts": {
"tool": "fetch_feeds",
"input": "allowed_hosts",
"rules": "Exact public DNS hostnames only, https only, no wildcards, IP literals, ports-only names or local/intranet suffixes. With the default network, each host must resolve only to public addresses. The widening applies to that single call."
}
},
"io": {
"inputs": [
{ "name": "urls", "type": "url_list" },
{ "name": "items", "type": "source_list" }
],
"outputs": [
{ "name": "items", "type": "source_list" },
{ "name": "report", "type": "trend_report" }
]
},
"runtimes": [
{ "id": "node", "version": ">=20", "tested": true },
{ "id": "claude-code", "tested": false, "notes": "MCP stdio server; not yet verified in Claude Code by AgentRove" }
],
"external_costs": "None. fetch_hn uses the free public Hacker News Algolia API (subject to its rate limits and terms); fetch_feeds downloads only the feeds you list. No AI model or paid API is used."
}