suggest_chart_type
Identify the right DGMO chart type for a plain-English diagram request before you generate, and get its syntax; if the choice is ambiguous, prompts you to ask the user.
Instructions
Suggest the best DGMO chart type for a user's plain-English diagram request.
Call this first when creating a new diagram: it ranks the chart types against the request and, on a confident pick, appends that type's language-reference section, so no separate get_language_reference call is needed. It is not needed when editing an existing diagram, whose first line already declares its type.
Returns one of two shapes: (1) a confident pick (high/medium) with the top match's syntax, or (2) an '⚠️ ASK THE USER' result when the choice is ambiguous or nothing matched. On an ASK-THE-USER result, present the listed candidates to the user and wait for their choice before generating, because the request alone does not settle which type they want.
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": "suggest_chart_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | User's plain-English diagram request |