Skip to main content
Glama
diagrammo
by diagrammo

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesUser's plain-English diagram request

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2
  2. Removedv0.1.21
  3. First observedv0.1.13

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations present, the description carries the full behavioral burden and does so well: it discloses the hidden side effect of appending the language-reference section, defines both possible return shapes including the '⚠️ ASK THE USER' outcome, and prescribes agent behavior on that outcome. This is well beyond what structured fields provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded with the core purpose and the when-to-call rule, and the result-shape and ASK-THE-USER guidance are placed last where they belong. Slightly dense, but essentially every sentence carries decision-relevant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by spelling out the two return shapes and the required agent action for each. Combined with the explicit when/when-not guidance, an agent has everything needed to call and act on this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for the single 'prompt' parameter, so the schema already documents it as the user's plain-English diagram request. The description adds no syntax, format, or length guidance beyond that, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource (suggest the best DGMO chart type) and scopes it to a plain-English diagram request. It clearly distinguishes itself from siblings like get_language_reference and list_chart_types by describing what it returns and why a separate reference call is unnecessary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit call-first rule for new diagrams, states the negative case (not needed when editing an existing diagram, whose first line declares its type), and names the alternative it subsumes (get_language_reference). It also tells the agent what to do on an ambiguous result: present candidates and wait for the user.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.