Skip to main content
Glama

Summarize Recent

summarize_recent

Summarizes recent project messages within a chosen time window and returns a combined, thread-grouped summary for quick project review.

Instructions

Summarize all recent project messages within a time window.

Fetches messages from the last since_hours hours, groups them by thread, and produces a combined project-wide summary. Results are stored in the message_summaries table for fast retrieval via fetch_summary.

Idempotent: if a summary already exists for the same time window (within 5-minute tolerance) it is returned from cache.

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>"
    },
    "name": "summarize_recent"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format (json or toon).
llm_modeNoUse LLM to refine the summary (default True).
llm_modelNoOverride LLM model name.
project_keyYesProject identifier (slug or human key).
since_hoursNoHow far back to look (default 1 hour).
max_messagesNoMaximum messages to include (default 500, capped at 500).

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 / format / description
      Added value: +"Output format (json or toon)."
    • addedInput schema / properties / llm_mode / description
      Added value: +"Use LLM to refine the summary (default True)."
    • addedInput schema / properties / llm_model / description
      Added value: +"Override LLM model name."
    • addedInput schema / properties / max_messages / description
      Added value: +"Maximum messages to include (default 500, capped at 500)."
    • addedInput schema / properties / project_key / description
      Added value: +"Project identifier (slug or human key)."
    • addedInput schema / properties / since_hours / description
      Added value: +"How far back to look (default 1 hour)."
  2. First observedv0.3.4

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose real behavior: it writes results into the message_summaries table (a persistent side effect), is idempotent within a 5-minute tolerance, and returns cached output rather than recomputing. It does not mention LLM cost/latency, permissions, or what happens to an existing summary when a new window overlaps it, which is the main remaining gap.

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?

Three short, front-loaded paragraphs: what it does, where results go, then the idempotency guarantee. Every sentence carries information; only the RST-style double backticks add minor noise.

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?

Output schema exists, so return values need not be described, and the definition covers the side effect, storage location, and caching semantics an agent needs before invoking. Adequate for a 6-parameter summarization tool, with only overlapping-window and cost behavior left implicit.

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 coverage is 100%, so every parameter including format, llm_mode, llm_model, since_hours and max_messages is already documented in the schema. The description reinforces since_hours through 'within a time window' but adds no syntax, units, or trade-off guidance beyond the schema, so the baseline of 3 applies.

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 specific verb and resource with scope: 'Summarize all recent project messages within a time window', and clarifies it produces a 'combined project-wide summary' by grouping into threads, which implicitly contrasts with the thread-level sibling summarize_thread. It never names that sibling outright, so differentiation requires a small inference.

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?

Clearly routes the agent after execution by naming fetch_summary for retrieval, and the idempotency paragraph tells the agent that re-calling within the tolerance window is a cheap cache read. It gives no explicit guidance on when to prefer summarize_thread over this tool for single-thread work.

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