From 73fb7000b5da63e3485e3ff56f96da8ede195a0b Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 14 Jun 2026 23:01:07 +0000 Subject: [PATCH] Improve tool description to encourage model to use summarize_document --- mcp_summary_server.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mcp_summary_server.py b/mcp_summary_server.py index e58768c..f781331 100644 --- a/mcp_summary_server.py +++ b/mcp_summary_server.py @@ -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"]