@dennisk2025/text-sentence-shuffler
v1.0.0
Published
Takes a paragraph or multi-sentence input and returns the sentences in randomized order.
Readme
text-sentence-shuffler
Takes a paragraph or multi-sentence input and returns the sentences in randomized order. Useful for creative exercises, studying, scrambling paragraphs for quizzes, and more.
Installation
You can install and run this MCP server using npx or add it as a dependency:
- Using NPX:
npx @dennisk2025/text-sentence-shuffler- Or, add as a dependency:
npm install @dennisk2025/text-sentence-shufflerAdding to Claude Desktop
To use this tool in Claude Desktop, add the following to your Claude Desktop configuration file:
{
"mcpServers": {
"text-sentence-shuffler": {
"command": "npx",
"args": ["@dennisk2025/text-sentence-shuffler"]
}
}
}Add this to your Claude Desktop config file at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Usage
Once started by Claude Desktop or manually via the terminal, the MCP server exposes the following tool:
shuffle_sentences
- Description: Randomly rearranges the order of sentences in the provided text while preserving sentence punctuation.
- Input:
text(string, required): The input string containing multiple sentences separated by punctuation (e.g.,.,!,?).
- Output:
result(string): The input sentences rearranged in randomized order and joined into a single string.
Example Tool Call
Parameters:
{
"text": "Claude is a virtual assistant. It helps users with their questions! Can it shuffle sentences? Yes, it can."
}Returns (example):
{
"result": "It helps users with their questions! Claude is a virtual assistant. Yes, it can. Can it shuffle sentences?"
}List of Available Tools
| Tool Name | Parameters | |---------------------|--------------------------------------------| | shuffle_sentences | text (string, required): Input text |
Error Handling
- If input text is missing or empty, the result will be empty.
- If only one sentence is input, it is returned unchanged.
- If you try to call an unknown tool, an error message is returned.
License
MIT
