Skip to main content
Glama

Summarize Thread

summarize_thread

Extract participants, key points, and action items from one or multiple message threads, returning detailed summaries or an aggregate digest for faster review.

Instructions

Extract participants, key points, and action items for one or more threads.

Single-thread mode (thread_id is a single ID):

  • Returns detailed summary with optional example messages

  • Response: { thread_id, summary: {participants[], key_points[], action_items[]}, examples[] }

Multi-thread mode (thread_id is comma-separated IDs like "TKT-1,TKT-2,TKT-3"):

  • Returns aggregate digest across all threads

  • Response: { threads: [{thread_id, summary}], aggregate: {top_mentions[], key_points[], action_items[]} }

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_key": "<project_key>",
      "thread_id": "<thread_id>"
    },
    "name": "summarize_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo
llm_modeNoIf true and LLM is enabled, refine the summary with AI.
llm_modelNoOverride model name for the LLM call.
thread_idYesSingle thread ID for detailed summary, OR comma-separated IDs for aggregate digest.
agent_nameNo
project_keyYesProject identifier.
include_examplesNoIf true (single-thread mode only), include up to 3 sample messages.
per_thread_limitNoMax messages to consider per thread (multi-thread mode).
registration_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / include_examples / description
      Added value: +"If true (single-thread mode only), include up to 3 sample messages."
    • addedInput schema / properties / llm_mode / description
      Added value: +"If true and LLM is enabled, refine the summary with AI."
    • addedInput schema / properties / llm_model / description
      Added value: +"Override model name for the LLM call."
    • addedInput schema / properties / per_thread_limit / description
      Added value: +"Max messages to consider per thread (multi-thread mode)."
    • addedInput schema / properties / project_key / description
      Added value: +"Project identifier."
    • addedInput schema / properties / thread_id / description
      Added value: +"Single thread ID for detailed summary, OR comma-separated IDs for aggregate digest."
  2. First observedv0.3.4

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the mode-dependent response structures and that examples are single-thread-only, but says nothing about cost/latency (particularly the llm_mode refinement), permission or registration requirements, or failure behavior for invalid IDs.

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?

Two clearly labeled mode blocks with inline response shapes, front-loaded by a one-line purpose statement. It is compact for a 9-parameter tool, though it reproduces response JSON that the output schema already defines.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the repeated response shapes are largely redundant, though mode-conditional shape differences are worth flagging. Gaps remain for a 9-parameter tool with no annotations: the meaning of the undocumented format, agent_name, and registration_token parameters, plus cost implications of LLM refinement, are unaddressed.

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 67%, and the description confirms the dual semantics of thread_id and reiterates the mode scoping of include_examples and per_thread_limit that the schema already states. Three parameters (format, agent_name, registration_token) remain undocumented in both schema and description, and no allowed values for format are given.

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?

States a concrete verb and resource ('Extract participants, key points, and action items for one or more threads') and cleanly separates single-thread from multi-thread behavior. It never names or distinguishes itself from plausible siblings like fetch_summary or summarize_recent, so an agent must infer 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 Guidelines3/5

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

The description gives clear mode-selection guidance: one ID selects a detailed summary, comma-separated IDs select an aggregate digest. However, it offers no guidance on when to pick this tool over summarization siblings such as fetch_summary or summarize_recent, leaving that comparison entirely to inference.

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