Text Processing
Convert AI-typical plain ASCII into proper typography: -- and --- become en/em dashes, straight quotes become curly/smart quotes (locale-aware), ... becomes a single ellipsis …, spaced dashes are tightened, and repeated spaces collapse — while fenced ``` code blocks and `inline` code are left untouched.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/em-dash-and-typographic-purifier' \
-H 'Content-Type: application/json' \
-d '{"text":"The API -- which we launched in 2020 -- was \"revolutionary\" according to users... It'\''s fast, reliable, and \"just works\".","locale":"en","conversions":"all","fixSpacedDash":true,"fixSpaces":true,"preserveCode":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/em-dash-and-typographic-purifier| Name | Type | Required | Description |
|---|---|---|---|
| text | textarea | Yes | — |
| locale | select | No | — |
| conversions | select | No | — |
| fixSpacedDash | checkbox | No | — |
| fixSpaces | checkbox | No | — |
| preserveCode |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-em-dash-and-typographic-purifier": {
"name": "em-dash-and-typographic-purifier",
"description": "Convert AI-typical plain ASCII into proper typography: -- and --- become en/em dashes, straight quotes become curly/smart quotes (locale-aware), ... becomes a single ellipsis …, spaced dashes are tightened, and repeated spaces collapse — while fenced ``` code blocks and `inline` code are left untouched.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=em-dash-and-typographic-purifier",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "em-dash-and-typographic-purifier",
"arguments": {
"text": "The API -- which we launched in 2020 -- was \"revolutionary\" according to users... It's fast, reliable, and \"just works\".",
"locale": "en",
"conversions": "all",
"fixSpacedDash": true,
"fixSpaces": true,
"preserveCode": true
}
}
}| checkbox |
| No |
| — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]