Skip to main content
Glama

ScorpTech x402 Tools

Summarize Extractive

summarize_extractive
Read-onlyIdempotent

Extractive summary with TextRank (Mihalcea & Tarau 2004): sentences are split (abbreviation / initial / decimal aware), linked by stemmed content-word overlap, ranked with PageRank, and the top N are returned in original order. No LLM, no hallucination: every summary sentence is verbatim from the input, with its index, score and offset. Choose a sentence count or a ratio. Offline, deterministic; 200 KB input. Returns JSON with: summary, sentences, totalSentences, selected, compression. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/summarize-extractive

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": "summarize_extractive"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to summarise (English works best)
ratioNoKeep this fraction of sentences instead (overrides sentences)
sentencesNoSentences to keep

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/non-destructive; the description adds substantially more: a hard 200 KB input cap, determinism and offline execution, a guarantee that every returned sentence is verbatim with index, score and offset, and a paid x402 access model at $0.003 USDC per successful call. The payment/auth requirement in particular is behavior an agent cannot infer 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.

Conciseness4/5

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

Front-loaded with the mechanism and the key guarantee, then parameters, limits, output fields, pricing, and mirror endpoint in a logical order. It is dense rather than padded, though 'No LLM, no hallucination' overlaps with 'every summary sentence is verbatim', leaving minor redundancy.

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?

With no output schema, the description enumerates the response fields (summary, sentences, totalSentences, selected, compression), and it covers the input limit, determinism, cost, and transport details. For a 3-parameter read-only utility, nothing an agent needs to invoke it or interpret the result is missing.

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%, so text/ratio/sentences are already documented, including the fact that ratio overrides sentences. The description's 'Choose a sentence count or a ratio' merely restates that relationship and adds no format, unit, or edge-case meaning beyond the schema. Baseline 3 applies.

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?

Names a specific technique and resource: 'Extractive summary with TextRank (Mihalcea & Tarau 2004)' and describes the pipeline (sentence split, stemmed overlap, PageRank, top N in original order). An agent immediately knows this is verbatim sentence selection, not abstractive generation, which cleanly separates it from any LLM-based summarizer.

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?

'No LLM, no hallucination' plus 'Offline, deterministic' tells the agent the conditions favoring this tool: when verbatim fidelity and reproducibility matter. 'Choose a sentence count or a ratio' gives a decision rule between the two selection modes. What is missing is an explicit statement of when NOT to use it (e.g., when abstractive/condensed output is needed), though no sibling summarizer exists to route against.

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