generate_class_diagram
Convert a natural-language domain model into class diagram code in Mermaid, PlantUML, or Python Diagrams, with an optional title.
Instructions
Generate a class diagram from a domain model description.
Args:
description: Natural language description of entities and their relationships
Example: "User has name and email, User creates Orders, Order contains Products"
output_format: Output format - "mermaid", "plantuml", or "python_diagrams" (default: "mermaid")
title: Optional custom title for the class diagram
Returns:
Dictionary with generated class diagram code and metadata
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"description": "<description>"
},
"name": "generate_class_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| description | Yes | ||
| output_format | No | mermaid |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |