Skip to main content
Glama

conversation_insights

Read-only

Analyze conversations by period to see outcomes, topics, languages, channels, and per-agent resolution mix, so you can identify what happened and where chats escalated or were abandoned.

Instructions

How conversations ended, what they were about and which language customers used — the Overview's "What happened in conversations" section (admin.screens.insights.build_insights), same payload: outcomes (resolved / escalated / abandoned / unknown with count, pct and the change in points vs the previous period), topics (top labels, merged across agents), languages, channels (chat/voice), agents (per-agent outcome mix, resolved %, top topic). available: false = the insights table could not be read (unknown, not zero); has_data: false = nothing analysed in the period yet (collecting). Outcomes are an estimate: a hand-off action in telemetry, else an AI reading of the transcript. Partner builds only ever see their own agents. Rows come from the background sweep in core/conversation_insights.py (~30 min after a conversation goes quiet; the last 30 days are backfilled in batches).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "conversation_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoOverview period: last 24h / 7 days / 30 days, each compared with the period before it.7d
trace_envNoEnvironment tag of the traces to scope telemetry to (dev|staging|prod); '' = all environments.prod
agent_kindNoOnly this agent kind ('' = every agent this build serves).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses data freshness (background sweep, ~30 min lag, 30-day backfill in batches), the meaning of `available: false` versus `has_data: false` (unknown versus zero), and how outcomes are estimated (hand-off telemetry, else AI transcript reading). It also states the partner-build visibility restriction, which is a meaningful authorization behavior an agent cannot infer from annotations or schema.

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 core framing is front-loaded, but the middle of the paragraph is a field-by-field enumeration of `outcomes`, `topics`, `languages`, `channels`, and `agents` that substantially duplicates what an output schema already provides. The parenthetical implementation path and file name are developer detail that costs the agent attention without changing how it calls the tool.

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 analytics-read tool with a full output schema and a single readOnly annotation, the description covers the hard parts: staleness, empty-versus-unavailable semantics, estimation method, and tenant scoping. It lacks any pointer to when a sibling is the better call, leaving ambiguity between this tool and `channels` or `voice_insights` whose concepts appear inside this payload.

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%, with `period` and `trace_env` documented via enum plus prose and `agent_kind` explained inline, so the schema carries the parameter burden. The description adds nothing about parameters — no default behavior notes or interaction between `trace_env` and `agent_kind`. Baseline 3 applies when the schema is fully self-documenting.

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 opening clause names the specific content domain — conversation outcomes, topics, and languages — and ties it to a concrete source, the Overview's 'What happened in conversations' section. An agent can tell this is a read of aggregated conversation analytics rather than raw conversation data. It stops short of distinguishing itself from siblings like `channels` or `voice_insights`, despite overlapping payload keys.

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?

Usage is only implied through the reference to the Overview screen and `build_insights`, giving the agent a mental model of where this data appears. There is no explicit statement of when to prefer this over sibling tools such as `channels`, nor any exclusion conditions. The caveats about `available: false` and partner scoping hint at edge cases but are not usage routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.