Skip to main content
Glama

summarize_cluster

Generate per-paper Key Findings, Methodology, and Relevance summaries for a cluster of papers using an LLM CLI, with optional write-back to Obsidian and Zotero.

Instructions

Generate per-paper Key Findings + Methodology + Relevance via LLM CLI.

For each paper in cluster_slug, builds a prompt from the abstract and invokes the detected LLM CLI (claude, codex, or gemini — pass llm_cli to override). With apply=False (default), returns the parsed JSON without writing. With apply=True, writes back to BOTH the Obsidian markdown blocks and the Zotero child note for each paper.

Use when: user says "summarize this cluster's papers", "fill the TODO Findings", or after auto ingest before scanning the vault.

No LLM CLI on PATH: prompt is saved to artifacts//summarize-prompt.md; user can pipe it through their LLM and re-run with --apply (CLI) or pass the parsed payload to the apply_cluster_summaries MCP tool below.

Returns {cluster_slug, ok, error, cli_used, prompt_path, apply_result}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cluster_slugYes
llm_cliNo
applyNo
write_zoteroNo
write_obsidianNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description fully discloses behavior: it invokes an LLM CLI (claude, codex, gemini with override), can write to Obsidian and Zotero when apply=True, returns JSON by default, and saves a prompt file if CLI is missing. The return structure is also described.

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?

The description is well-structured with a front-loaded purpose statement, followed by mode details, usage cues, and fallback instructions. It is concise but could trim some procedural repetition (e.g., re-explaining the apply flow).

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?

The description covers the main workflow, fallback, and return format, but does not explain the individual write flags or any prerequisites like how to obtain a cluster_slug. Given the tool's complexity and lack of schema descriptions, it is largely complete but has minor gaps.

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 0%, so the description must compensate. It explains 'cluster_slug' and 'llm_cli' verbally, and mentions 'apply' behavior, but does not describe the boolean parameters 'write_zotero' and 'write_obsidian', leaving their purpose unclear. Partial coverage across 5 parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a clear action: 'Generate per-paper Key Findings + Methodology + Relevance via LLM CLI.' It specifies the resource ('cluster_slug') and distinguishes from sibling tools like 'apply_cluster_summaries' and 'ask_cluster' by detailing the generation process and output modes.

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

Usage Guidelines5/5

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

The description explicitly states when to use the tool: when user says 'summarize this cluster's papers', 'fill the TODO Findings', or after 'auto' ingest. It also provides an alternative path: if no LLM CLI is available, the prompt is saved and can be processed with 'apply_cluster_summaries' or the CLI re-run.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/WenyuChiou/research-hub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server