Skip to main content
Glama

ai_summarize_long

Read-only

Long document summarizer — Summarizes long documents up to 120,000 characters (about 30 pages) with map-reduce: each ~12k-char section is condensed by AI, then combined into a final summary. Pass url= (any web page or text file) or text=. Options: length=short|medium|long, focus= (what to pay attention to). Returns title, summary, key points, key facts (numbers, names, dates), topics, audience, section count. For PDFs use /v1/ai/summarize-pdf. Price: $0.04 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": {
      "url": "<url>"
    },
    "name": "ai_summarize_long"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYese.g. https://en.wikipedia.org/wiki/Cloudflare

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 already cover read-only, open-world, non-destructive, but the description adds substantial context beyond them: the map-reduce algorithm and ~12k-char chunking, the cost of $0.04 USDC per call via x402 (an auth/payment requirement), and the returned fields. That is exactly the information an agent needs to decide whether a paid call is warranted.

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?

Front-loaded with the capability and limit, then mechanics, options, return shape, sibling routing and price, each in a single compact clause. No filler sentences; the density is justified by the tool's complexity.

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?

With no output schema, the description compensates by enumerating the returned fields, and it discloses cost and processing strategy. The remaining gap is the unresolved mismatch between the advertised text=/length=/focus= options and a schema that only accepts a required url.

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?

It clarifies that url accepts any web page or text file, which is genuinely useful beyond the schema's example. However, it also instructs 'Pass url= ... or text=' and documents length= and focus= options that do not exist in the schema, which can lead an agent to send arguments that will be rejected. The added meaning is real but conflicts with the actual contract.

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 long documents) plus the hard scope limit of 120,000 characters (~30 pages). It also distinguishes itself from the PDF sibling by name, so an agent can route correctly without opening either 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 use condition (long documents, up to 30 pages) and explicitly routes PDFs to /v1/ai/summarize-pdf. It does not distinguish itself from other summarizer siblings like ai_summarize or text_summarize, leaving that boundary to inference.

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