Skip to main content
Glama

Analyze DM conversations

analyze_conversations
Read-onlyIdempotent

Evidence for qualitative questions about direct messages customers sent, such as "what do people complain about in DMs this month". Works on received messages only. Filter by date range, conversation sentiment, conversation tags (AI or manual), platform, a text search, language or one conversation; the result describes the matching messages: counts by sentiment, tag, platform, language and day, the most active conversations, frequent terms and two-word phrases (with lift against all received messages of the range when filtered), and a balanced sample of message texts spread over time and conversations, de-duplicated, with links. Sentiment and tags belong to the conversation, so every message of a conversation carries its current values. Needs the Inbox feature on the brand plan.

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": {
      "brand": "<brand>"
    },
    "name": "analyze_conversations"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
tagsNoOnly items carrying any of these tag slugs.
brandYes
searchNoOnly items whose text contains this, case-insensitive (a plain substring, not a query language).
intervalNoauto
languageNoOnly items detected in this language code, e.g. "de".
timeZoneNo
platformsNoOnly these platforms.
sampleSizeNoTexts in the sample (5-150). The result stays under ~55,000 characters, so long texts can mean fewer items.
sentimentsNoOnly items with these sentiments.
includeChartsNo
maxTextLengthNoCharacters kept per sampled text (60-500).
conversationIdNoOnly messages of this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses a hard prerequisite (Inbox feature on the brand plan), an important data semantic (sentiment and tags are conversation-level, so every message carries current conversation values), and computation details such as phrase lift measured against all received messages of the range and a de-duplicated sample spread over time.

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 example question, then scope, filters, and result shape in a single dense paragraph with no filler sentences. The long enumeration of result contents is justified by the absent output schema, though it could be tightened.

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 a 14-parameter analytics tool with no output schema, the description covers purpose, filters, return contents, and entitlement requirements well. Remaining gaps are secondary parameters (interval, timeZone, includeCharts) and no note on what happens when the Inbox feature is unavailable.

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 57%, so the description must carry weight, and it maps most filters to intent: date range, conversation sentiment, tags (noting AI or manual origin), platform, text search, language, or a single conversation. It adds meaning the schema lacks, but leaves interval, timeZone, includeCharts and maxTextLength unaddressed.

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-plus-resource: qualitative evidence analysis over direct messages customers sent, with an example question and an explicit scope limit ("Works on received messages only"). It clearly separates itself from outbound DM tools by the received-only constraint, though it never names a sibling like get_dm_analytics or analyze_comments to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is concrete: it is for qualitative questions such as "what do people complain about in DMs this month", and the received-only scope plus the Inbox-plan prerequisite tell the agent when the tool applies. It stops short of naming an alternative for quantitative or outbound-message questions and gives no explicit when-not guidance.

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