Generate a diagram
generate_diagramCreate cloud architecture diagrams from text prompts. Receive diagram XML, Well-Architected warnings, and a score. Costs credits.
Instructions
Create a new cloud architecture diagram from a natural-language prompt. Returns the diagram id, its draw.io XML, Well-Architected warnings, score, and credits used. Costs credits.
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": {
"prompt": "<prompt>"
},
"name": "generate_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What to draw, e.g. 'AWS 3-tier web app with ALB, EC2 Auto Scaling and RDS Multi-AZ' | |
| opinionated | No | Apply best-practice hardening suggestions during generation (paid plans only). | |
| diagram_type | No | architecture | flowchart | sequence | data_pipeline | ... (default: architecture) | |
| cloud_provider | No | aws | azure | gcp | kubernetes | oci | general (default: general) |