Skip to main content
Glama

Summarize text (extractive)

summarize
Read-onlyIdempotent

Extractive summary: returns the first sentences of the text (default 3, up to 10) capped at max_chars (default 600, 50-2000), taken from the first 4000 characters. Deterministic; it does not paraphrase. truncated is true when the source was longer than the considered window. Price: $0.01 USDC per call on Base mainnet ($0.001 on Base Sepolia), paid with x402; failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
textYesPlain text to summarize (non-empty).
max_charsNoUpper bound on summary length (default 600).
max_sentencesNoSentences to keep (default 3).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "Upper bound on summary length (default 600).",
      +  "maximum": 2000,
      +  "minimum": 50,
      +  "type": "integer"
      +}
    • addedInput schema / properties / max_sentences
      Added value: +{
      +  "description": "Sentences to keep (default 3).",
      +  "maximum": 10,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"Plain text to summarize."New value: +"Plain text to summarize (non-empty)."
    • addedInput schema / properties / text / minLength
      Added value: +1
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description goes well beyond them: determinism, the 4000-character source window, the meaning of the `truncated` flag, the x402 payment requirement with exact price per network, and the fact that failed calls are not charged. Payment and truncation semantics are the kind of behavior an agent cannot get from structured fields.

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 dense sentences covering algorithm, limits, truncation, and pricing with no filler, and the core behavior is front-loaded before the commercial details. Both price tiers earn their place since the network changes the cost by 10x.

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

Completeness5/5

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

For a three-parameter, no-output-schema tool, the description covers everything needed to call it correctly: input constraints, defaults, output semantics via `truncated`, determinism, and the payment requirement. No return-value documentation is needed beyond the flag it already explains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and already documents all three parameters, so the baseline is 3. The description adds real meaning on top: it states the defaults (3 sentences, 600 chars), restates the ranges, and discloses the 4000-character source window, a behavioral cap that appears nowhere in the schema.

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?

States a specific verb and resource and pre-empts the biggest ambiguity by naming the algorithm class ('Extractive summary: returns the first sentences'), which immediately distinguishes it from generative siblings like reply.draft or text.extract. The mechanism and the non-paraphrasing guarantee make the tool's identity unambiguous.

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 implied rather than stated: 'it does not paraphrase' tells the agent this is the wrong tool when rewriting is wanted, which is useful implicit routing. But there is no explicit when-to-use statement and no sibling is named as an alternative, leaving the agent to infer the boundary against text.extract.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources