Skip to main content
Glama

summarize

Extract central sentences from long articles or documents to compress context into key points using term-frequency scoring.

Instructions

Perform extractive text summarization to identify and return the most informative, central sentences from long articles or documents based on term-frequency scoring. Use to compress long context into key points. Pure, deterministic, and idempotent.

Input Schema

NameRequiredDescriptionDefault
textYesRaw text content to summarize (maximum 50,000 characters).
num_sentencesNoNumber of key summary sentences to extract (integer between 1 and 10, default 3).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.3
    • changedInput schema / properties / num_sentences / description
      Previous value: -"Number of output sentences (1-10)"New value: +"Number of key summary sentences to extract (integer between 1 and 10, default 3)."
    • changedInput schema / properties / text / description
      Previous value: -"Text to summarize (max 50,000 chars)"New value: +"Raw text content to summarize (maximum 50,000 characters)."
  2. First observedv0.1.0

TDQS

A3.8/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 meaningful work: "Pure, deterministic, and idempotent" effectively declares a no-side-effect, repeatable read operation, which is exactly the property an agent would otherwise want from annotations. The method (term-frequency scoring, extractive rather than abstractive) further sets expectations about output fidelity, though error behavior on oversized input is left to the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each load-bearing: the first defines method and output, the second gives the use case, the third states behavioral guarantees. The purpose is front-loaded and there is no filler or repetition of schema content.

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 low-complexity, two-parameter tool with no annotations and no output schema, the definition covers method, use case, and side-effect profile. The only modest gap is that it does not describe the shape of the returned result (e.g., ordered list of sentences), which matters slightly since no output schema exists.

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 both 'text' (50,000-char cap) and 'num_sentences' (1-10, default 3) fully documented in the schema, so the baseline is 3. The description adds only the notion of "most informative, central sentences" as the selection criterion, without extra detail on the optional parameter beyond what the schema states.

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 names a specific verb and resource: extractive summarization of long articles/documents based on term-frequency scoring, and clarifies it returns central sentences rather than abstractive rewrites. That is far more precise than a restatement of the name. It does not, however, reference any sibling tool (e.g., web_reader or pdf_extract as upstream sources), so it stops short of full differentiation.

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?

It offers one explicit usage cue: "Use to compress long context into key points." That tells the agent a triggering condition but gives no when-not guidance, no input-size prerequisite beyond the schema's 50,000-character cap, and no mention of how it relates to siblings that fetch or extract long text.

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