Skip to main content
Glama

Get sentiment report

get_sentiment_report
Read-onlyIdempotent

Customer sentiment over the last N days (Reports -> Sentiment), one conversation at a time. summary: conversations read (unread = could not be read, left out of rates), ending_negative_rate, net_sentiment (% closing positive minus % closing negative, -100..100), opened_negative and recovery_rate (of the conversations that opened negative, how many closed neutral or positive), worsened_rate, attention_now. matrix: opening -> closing counts. breakdown.agents credits the outcome to whoever handled the conversation at its last burst (handler bot = the AI agent); judge agents by recovery_rate, never by how many negatives they inherited, and say when a row is low_sample. Also frustration by inbox, flags (asked for a person, churn risk, abusive language, minutes until an agent replied), quality (CSAT by closing sentiment, response and resolution times by opening sentiment) and the conversations that need attention now (attention: the 10 most recently active; summary.attention_now is the total). Sentiment is recorded only when it runs in enforce; all zeros usually means it is off or still in shadow -- say so. Call it "sentimiento" in Spanish, never "ánimo" (frustration levels: tranquilo, molesto, frustrado, hostil). Suggest reviewing the AI agent only when breakdown.agents has a bot row with conversations; a conversation an agent handled or nobody did needs a reply or an assignee, not a bot check.

Input Schema

NameRequiredDescriptionDefault
daysNoHow many calendar days to measure, today included (7 = today and the 6 before; this month = today's day of the month). Defaults to 30.
fieldsNoOptional: return only these fields of each record.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the bar is lower, yet the description adds substantial context beyond them: sentiment is recorded only when enforce runs, zeros indicate off/shadow mode, low_sample rows should be flagged, and agents should be judged by recovery_rate rather than inherited negatives. This is exactly the extra behavioral context that annotations cannot carry.

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?

The purpose is front-loaded and most content (field semantics, enforcer/zero caveat, judge-by-recovery_rate rule) earns its place given the number of returned fields. However it is delivered as a single dense run-on with no structural breaks, and items like the Spanish naming rule ('sentimiento, never ánimo') and the list of frustration levels add bulk without clearly aiding tool invocation.

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?

There is no output schema, so the description must carry the return-value burden — and it does, enumerating summary, matrix, breakdown, frustration, flags, quality, and attention with their meanings and edge cases. For a complex no-output-schema report, the description is effectively complete for correct interpretation.

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 description coverage is 100% — days and the fields enum are fully documented in the schema itself. The description's detail ('conversations read, unread...') describes return fields rather than the input parameters, so it adds no meaningful semantics beyond the schema. Baseline 3 is appropriate.

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?

The description states a specific verb+resource ('Customer sentiment over the last N days') and details the report's content precisely, so an agent knows exactly what it returns. It does not, however, name or differentiate itself from plausible siblings such as get_agent_report, get_conversation_report, or list_sentiment_conversations, so it stops short of a 5.

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 gives downstream behavioral guidance ('Suggest reviewing the AI agent only when breakdown.agents has a bot row...') and an important interpretation caveat ('all zeros usually means it is off or still in shadow'), which imply when the report is meaningful. But it never explicitly states when to call this versus sibling reports, nor any prerequisite, so guidance remains implied rather than declared.

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