Skip to main content
Glama
CKBrennan

overtone-news-mcp

timeseries

Monitor tone changes over time for any topic with configurable time bins, returning per-bin averages and dominant tone for line charts.

Instructions

Tone trajectory over time for a topic. bin is 'hour', '6h', or 'day'. hours up to 240 (10 days). Returns an ordered series of per-bin tone averages, article_count, and dominant_tone. Render as a Mermaid line chart or ASCII sparkline when presenting to the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
binNohour
hoursNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The timeseries tool handler function. Decorated with @mcp.tool(), it accepts a query string, a bin literal ('hour', '6h', 'day'), and hours (1-240). Calls _post('timeseries', ...) to execute the API request.
    @mcp.tool()
    def timeseries(
        query: Query,
        bin: Bin = "hour",
        hours: Annotated[int, Field(ge=1, le=240)] = 72,
    ) -> dict[str, Any]:
        """Tone trajectory over time for a topic. `bin` is 'hour', '6h',
        or 'day'. `hours` up to 240 (10 days). Returns an ordered series
        of per-bin tone averages, article_count, and dominant_tone.
        Render as a Mermaid line chart or ASCII sparkline when presenting
        to the user."""
        return _post("timeseries", {"query": query, "bin": bin, "hours": hours})
  • Type aliases/schemas used by timeseries: Query (str, 1-500 chars), Bin (Literal 'hour', '6h', 'day'), and the hours field constraints (ge=1, le=240).
    Query = Annotated[str, Field(min_length=1, max_length=500)]
    ToneFilter = Literal["positive", "negative", "informational"]
    ToneName = Literal[
        "happy", "funny", "hopeful", "informational", "angry", "sad", "fearful"
    ]
    Bin = Literal["hour", "6h", "day"]
  • The @mcp.tool() decorator registers timeseries as an MCP tool on the FastMCP server instance.
    @mcp.tool()
  • The _post helper function that timeseries uses to make HTTP POST requests to the Overtone API. It injects the API key via X-API-Key header.
    def _post(path: str, body: dict[str, Any]) -> dict[str, Any]:
        with httpx.Client(timeout=HTTP_TIMEOUT) as client:
            resp = client.post(
                f"{API_URL}/{path}",
                headers={"X-API-Key": _load_api_key()},
                json=body,
            )
            resp.raise_for_status()
            return resp.json()
  • The 'timeseries' tool name is listed in the server_capabilities resource, confirming it's available alongside other tools.
    return json.dumps({
        "tools": ["news", "tone", "pulse", "emerging", "velocity", "timeseries", "report"],
Behavior3/5

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

With no annotations, the description bears full transparency burden. It discloses return fields and constraints (bin, hours), but omits potential behavior like rate limiting, data freshness, or error cases. This is adequate but not thorough.

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?

The description is short and front-loaded with purpose. Two sentences cover key info. Slightly structured but could benefit from bullet points or separation of concerns.

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?

Given the presence of an output schema (context signals), the description appropriately avoids detailing return format but still lists key fields. Includes rendering guidance. Adequate for a simple retrieval tool.

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

Parameters3/5

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

Schema coverage is 0%, but description explains 'bin' options and 'hours' range (1-240). However, the 'query' parameter is entirely unexplained, leaving its semantics unclear.

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 clearly states 'Tone trajectory over time for a topic' with specific verb and resource (trajectory, tone averages, article_count, dominant_tone). It distinguishes from siblings like 'tone' (static) and 'pulse' (current) by focusing on time series.

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?

The description implies when to use (for temporal tone analysis) but lacks explicit when-not-to-use or comparisons to sibling tools. The rendering hint provides some usage context, but no exclusion criteria.

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/CKBrennan/overtone-news-mcp'

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