Skip to main content
Glama

Summarize Document

summarize_document
Read-onlyIdempotent

Tuatara Summarize: extractive summary of a document. Returns the document's own sentences, chosen by a vector-association model, cut to sentence_count, a ratio of the sentences or a token budget; nothing is generated, so the summary cannot add facts. Use it to shrink long text before passing it to a chat model. Up to 200,000 characters per call; no account needed.

Input Schema

NameRequiredDescriptionDefault
modeNoauto (default), faithful, gs1, gs2, best, tuned or tuned-best
textYesthe document (plain text or HTML)
orderNodocument (default: original order) or rank (best first)
ratioNoshare of the sentences to keep, 0.05-0.9 (e.g. 0.2)
max_tokensNotoken budget for the summary (cl100k tokens)
sentence_countNonumber of sentences to keep (1-500)
context_controlNoone word to steer the summary toward a subject
context_control_sensitivity_levelNo0-10, how strongly the word steers (default 2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds the important behavioral facts the annotations don't capture: output is extractive only and cannot introduce facts, the call handles up to 200,000 characters, and no account is required. That's substantive context an agent needs in order to trust the output.

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?

The description is three tight sentences with no filler. The core identity comes first, then the sizing semantics, then the use case and limits, so the most decision-relevant information is front-loaded.

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 8 parameters, a 100% schema coverage, and no output schema, the description is complete. It also explains the return values (the document's own sentences, in either original order or ranked order via the schema) and the input-size limit. An agent has everything it needs to call the tool correctly.

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%, so a baseline of 3 applies. The description goes beyond that by explaining the three mutually exclusive ways to size the output (sentence_count, ratio, or token budget), which the schema lists as separate fields without saying they're alternatives. It doesn't touch mode, order, or context_control, so it isn't a 5.

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?

The description gives a specific verb and resource (extractive summary of a document) and immediately distinguishes itself from generative summarizers by explaining the algorithm ('chosen by a vector-association model') and the guarantee ('nothing is generated, so the summary cannot add facts'). No sibling tool competes for this role, so no differentiator is needed.

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?

It states a concrete use case: 'Use it to shrink long text before passing it to a chat model.' That tells the agent when to reach for it. It doesn't cover exclusions or say what to do for short text, or name a generative alternative when extraction isn't enough, so it falls short of a 5.

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