Text Summary
Summarise text as a paragraph, bullet points or a single sentence, up to the length you set.
Pay by wallet (x402) AI-generated
summarize Example
Example answer
{
"style": "conventional",
"summary": "This text is a brief test input designed for automated capability testing purposes.",
"key_points": [
"Text serves as a test input",
"Intended for automated capability testing",
"Brief and straightforward in nature"
],
"word_count": 18,
"detected_language": "English"
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
text | string | Yes | Text to summarize |
style | string | No | Summary style: paragraph, bullets, or one_sentence |
max_length | integer | No | Approximate max word count |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
style | string | Always (present in every successful answer) |
summary | string | Always (present in every successful answer) |
key_points | array | Always (present in every successful answer) |
word_count | integer | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "summarize",
"inputs": {
"text": "This is a test input for automated capability testing.",
"style": "conventional"
},
"max_price_cents": 5
}' {
"tool": "strale_execute",
"arguments": {
"slug": "summarize",
"inputs": {
"text": "This is a test input for automated capability testing.",
"style": "conventional"
},
"max_price_cents": 5
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "summarize",
inputs: {
"text": "This is a test input for automated capability testing.",
"style": "conventional"
},
max_price_cents: 5,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="summarize",
inputs={
"text": "This is a test input for automated capability testing.",
"style": "conventional",
},
max_price_cents=5,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/summarize?text=This+is+a+test+input+for+automated+capability+testing.&style=conventional' Limitations
Summaries can omit nuances and important details
AI-generated summaries may omit nuances or context-dependent details from very long or technical documents
What to do instead: For critical documents, compare the summary against the original to verify no essential details were lost
Related tools
- Sentiment Analysis €0.05
- Text Classification €0.05
- Translation €0.05