Improve tool description to encourage model to use summarize_document

This commit is contained in:
2026-06-14 23:01:07 +00:00
parent 741714a4bc
commit 73fb7000b5
+8 -3
View File
@@ -44,17 +44,22 @@ TOOLS_LIST: Dict[str, Any] = {
"tools": [
{
"name": "summarize_document",
"description": "Summarize a document. Automatically handles chunking for long text. Returns a concise summary without exposing the full text.",
"description": (
"Use this tool for any long or complex document you need to summarize. "
"It automatically chunks large texts, summarizes each chunk, and combines them "
"into one concise summary while keeping the full text out of the chat context window. "
"Prefer this tool over doing your own summarization for documents longer than a few paragraphs."
),
"inputSchema": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The document text to summarize"
"description": "The full document text to summarize. Paste or paste-in the entire content."
},
"max_length": {
"type": "integer",
"description": "Maximum length of summary in words (default: 100)"
"description": "Maximum length of summary in words (default: 100). Use this to control detail level."
}
},
"required": ["text"]