Skip to main content
Glama

text_extractive_summary

Read-only

Extractive summary (TextRank, offline) — Summarize any text by picking its most central sentences verbatim - TextRank over TF-IDF sentence similarity, fully offline and deterministic (no AI, so nothing is invented and results are repeatable). Returns the summary, the chosen sentences with their positions and scores, compression ratio and the top-ranked sentences. Optional: sentences (1-30, default 5) or ratio (0-1), query= to bias toward a topic. Up to 100,000 chars. Price: $0.002 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "text_extractive_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYese.g. The Federal Reserve held interest rates steady on Wednesday. Officials said inflation remains elevated but has eased over the past year. Mr. Powell noted that the labor market is still strong. Markets rallied after the announcement. Analysts expect the first rate cut in early 2027. Bond yields fell as traders priced in cuts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, non-destructive), while the description adds substantial behavior: fully offline, deterministic, nothing invented, a 100,000-character input ceiling, and an explicit price ($0.002 USDC on Base via x402) that tells the agent a payment/auth step is involved. It also enumerates what is returned (summary, chosen sentences with positions and scores, compression ratio, top-ranked sentences), which matters because there is no output schema.

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?

Front-loaded with the core action and method, then method detail, then return shape, then optional controls and limits. It is dense but nearly every clause carries information; the pricing sentence is the only element that feels tacked on rather than integrated into the flow.

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 single-required-parameter tool with no output schema, the description supplies what the schema cannot: output shape, determinism guarantees, size limit, optional tuning knobs, and cost. An agent has enough to decide whether to call it and what to expect back.

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% but the schema only declares 'text', whereas the description documents three optional controls the schema does not show: sentences (1-30, default 5), ratio (0-1), and query= for topic biasing, each with concrete bounds and defaults. That is real added meaning, but the mismatch between the described parameters and the published schema risks confusing an agent about what it can actually send.

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 ('Summarize any text by picking its most central sentences verbatim') plus the exact method (TextRank over TF-IDF sentence similarity). It also implicitly separates itself from the ai_* summary siblings by stressing extractive/offline/'no AI', so an agent can tell which summarizer to pick without opening a schema.

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?

Gives a clear selection context: use this when output must be verbatim, deterministic and repeatable, which implicitly rules out the generative ai_* summarizers. It never explicitly names an alternative or states a when-not-to-use case, so the routing is inferred rather than spelled out.

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