Skip to main content
Glama

Get Sentiment Time Series Tool

get-sentiment-time-series-tool
Read-onlyIdempotent

Average sentiment score (0-100) of each tracked brand's mentions per bucket. Scope by brand_id for one line; by segments for that segment's brands; otherwise top top_n by mention count (default 20, max 50). Per-bucket value is null when the brand had no mentions in that bucket.

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": {
      "project_id": "<project_id>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get-sentiment-time-series-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTag IDs (prompt classifiers) to limit responses by. Optional.
top_nNoCap on series count when no brand/segments scope is set (default 20, max 50).
brand_idNoOptional brand to scope the chart to (single-brand line). Must belong to the project.
end_dateYesInclusive UTC end of the analytics window. Must be on or after `start_date` and on or before today.
intervalNoBucket granularity for time-series tools. One of: day, week, month, year. Required for time-series tools, ignored for aggregate tools.
monitorsNoMonitor IDs in the active project. Optional.
segmentsNoSegment IDs (brand groupings) to slice analytics by. Optional.
countriesNoISO-3166-1 alpha-2 country codes to include. Optional.
platformsNoAI platforms to include. Optional. Values: chatgpt, perplexity, gemini, grok, copilot, claude, google_ai_mode, google_ai_overview.
project_idYesProject to compute analytics for.
start_dateYesInclusive UTC start of the analytics window. ISO 8601 date (YYYY-MM-DD).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds real behavioral detail beyond that: the 0-100 score range, the default and maximum for top_n, the precedence between scope options, and the fact that a bucket is null when the brand had no mentions — which prevents misreading gaps as zero sentiment.

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

Conciseness5/5

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

Three short sentences, each carrying distinct information: metric definition first, scope resolution second, null semantics last. No repetition of the title and nothing that could be cut.

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 an 11-parameter analytics tool with no output schema, the description covers the metric, the scoping logic and the null case. It stays silent on interval granularity and on the tag/monitor/country/platform filters, though those are fully documented in the schema, so the remaining gaps are minor.

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 baseline is 3. The description earns an extra point by stating the interaction between brand_id, segments and top_n, which the schema documents only in isolation — an agent would not otherwise know that brand_id or segments suppress top_n.

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 names the exact metric (average sentiment score 0-100), the entity (each tracked brand's mentions) and the granularity (per bucket), which cleanly separates it from the sibling time-series tools that measure position, share of voice, visibility or source usage.

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?

It explains the internal scoping precedence (brand_id for a single line, segments for a segment's brands, otherwise top_n by mention count), which effectively tells the agent how to pick parameters. It gives no guidance on when to choose this tool over the sibling analytics tools or the raw get-brand-mention-tool, so usage is implied rather than stated.

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.

Resources