Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Development

Log Sequence Diagram Converter

Convert structured service logs into Mermaid or PlantUML sequence diagrams, with optional latency and error annotations

text· Text resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/log-sequence-diagram-converter' \
  -H 'Content-Type: application/json' \
  -d '{"filename":"logFile.ext","contentType":"application/octet-stream","size":12345}'

# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
  --data-binary @/path/to/file.ext

# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/en/api/tools/log-sequence-diagram-converter' \
  -F 'logInput=2026-04-06T10:00:01Z api -> auth POST /login | status=401 | latency=82ms | error=invalid token
2026-04-06T10:00:01Z auth -> user-db SELECT user_by_email | status=200 | latency=14ms
2026-04-06T10:00:02Z api -> audit POST /events | status=202 | latency=11ms' \
  -F 'logFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
  -F 'diagramFormat=mermaid' \
  -F 'includeLatencyNotes=true' \
  -F 'highlightErrors=true' \
  -F 'maxSteps=12'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/log-sequence-diagram-converter

Parameters

NameTypeRequiredDescription
logInputtextareaNo—
logFilefileupload requiredNo—
diagramFormatselectNo—
includeLatencyNotescheckboxNo—
highlightErrorscheckboxNo—
maxStepsnumberNo—
File-type parameters must be uploaded first via POST /upload/log-sequence-diagram-converter, then the returned filePath is passed to the corresponding file field.

Response format

Text result

JSON
{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "mcpServers": {
    "elysiatools-log-sequence-diagram-converter": {
      "name": "log-sequence-diagram-converter",
      "description": "Convert structured service logs into Mermaid or PlantUML sequence diagrams, with optional latency and error annotations",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=log-sequence-diagram-converter",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "log-sequence-diagram-converter",
    "arguments": {
  "logInput": "2026-04-06T10:00:01Z api -> auth POST /login | status=401 | latency=82ms | error=invalid token\n2026-04-06T10:00:01Z auth -> user-db SELECT user_by_email | status=200 | latency=14ms\n2026-04-06T10:00:02Z api -> audit POST /events | status=202 | latency=11ms",
  "logFile": "https://example.com/file.ext",
  "diagramFormat": "mermaid",
  "includeLatencyNotes": true,
  "highlightErrors": true,
  "maxSteps": 12
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).
File parameters accept a public file URL only (https://…). Local paths, data: URIs, and Base64 strings are not supported.

Questions or issues? Contact [email protected]

Browse tools
Open tool