Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Plot Panels

plot_panels

Draws 2–6 vertically stacked panels that share one x-axis, such as Bode magnitude and phase, as deterministic SVG, PNG, and JSON outputs.

Instructions

Draw 2-6 vertically stacked panels that share one x axis (Bode magnitude + phase, waveform + spectrum, S-N curve + residual) as one deterministic SVG plus, by default, plot.png, a 1600 px wide picture (format=both; data.png_path; needs the png extra) that also comes back as an image in the reply (inline_image): hand over the PNG, not the SVG path; plus plot_data.json. 'panels' lists 'title|y_columns|y_label|y_scale' records; each panel gets its own y axis. Data: a CSV with a header row or inline JSON series; the same kinds, themes and decimation as plot_xy.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "plot_panels"
  }
}

Input Schema

NameRequiredDescriptionDefault
gridNotrue draws grid lines at the major ticks of every panel; false draws none.
kindNoline, scatter, step or stem for every panel; default line.line
themeNoauto (follows light/dark), light, dark, or print (black and grey with dash patterns).auto
titleNoTitle above all panels, plain text <= 120 characters, e.g. 'Butterworth low pass'; blank = none.
widthNoSVG width in px, 200..2400, e.g. 900.
formatNoPicture file: both (default: plot.svg + plot.png 1600 px wide; PNG needs the png extra), svg (no PNG) or png (no SVG).both
heightNoSVG height in px, 200..2400, e.g. 700; split equally between the panels.
legendNoauto (panels with 2+ series), off, top_right, top_left, bottom_right, bottom_left or right (outside).auto
panelsNo2..6 records 'title|y_columns|y_label|y_scale' joined by ';', e.g. 'Gain|magnitude_db|dB|linear;Phase|phase_deg|deg'.
seriesNoInline JSON series [{"name":"mag","x":[...],"y":[...]}]; panels pick them by name; <=20 series, <=200000 points.
markersNotrue adds a marker on every drawn point of line/step series in all panels.
x_labelNoTitle of the shared x axis with its unit, e.g. 'Frequency (Hz)'; plain text <= 120 characters.
x_rangeNoFixed shared x range 'min,max': plain numbers in the axis unit, no unit text, e.g. '10,4000' (not '10 Hz,4 kHz'); blank = automatic.
x_scaleNolinear or log for the shared x axis; log refuses zero or negative x (e.g. a 0 Hz row).linear
x_columnNoCSV header name of the shared x column, e.g. 'frequency_hz'; blank = the first column. CSV mode only.
data_fileNoCSV/TXT path with a header row, e.g. ws/<job>/filter_response.csv from dsp_filter_design. Give this or 'series'.
inline_imageNotrue (default): the PNG also comes back as an image block in the reply when it is <= 600 kB; false: path only.
unwrap_phaseNotrue unwraps every series whose name contains 'phase' (degrees; 'rad' in the name: radians): no +-180 jumps in a Bode phase.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses that output is deterministic SVG plus a default 1600 px plot.png, that the PNG requires the 'png' extra, that plot_data.json is also produced, and that inline_image only triggers under 600 kB. It omits where files land on disk and whether existing plot.svg/plot.png are overwritten, which matters for a tool that writes files.

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

Conciseness3/5

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

It is front-loaded with the purpose, which is good, but the opening is a single runaway sentence stuffed with parenthetical clauses ("(format=both; data.png_path; needs the png extra)") that are hard to parse on first read. There is little pure filler, yet the telegraphic style and mixed priority of details cost readability.

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

Completeness4/5

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

For an 18-parameter tool with an output schema and no annotations, the description covers the essentials: data input modes, panel specification, output artifacts, theme/kind reuse from plot_xy, and the png-extra dependency. What's missing is failure behavior when neither 'series' nor 'data_file' is supplied and any note on output file location, both of which an agent would want before calling.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema doesn't: the 'panels' pipe-delimited record shape is explained narratively, "each panel gets its own y axis" clarifies the panel/axis relationship, and 'height' is stated to split equally between panels. The format/inline_image interaction is spelled out rather than left to be inferred from two separate property descriptions.

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 names a specific verb and resource ("Draw 2-6 vertically stacked panels that share one x axis") and immediately grounds it with concrete use cases (Bode magnitude + phase, waveform + spectrum, S-N curve + residual). The multi-panel framing plus the reference to plot_xy makes the distinction from single-plot siblings clear without opening either schema.

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

Usage Guidelines4/5

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

It gives real operational guidance: use a CSV from a prior step (dsp_filter_design) or inline series, default to format=both, and "hand over the PNG, not the SVG path" — a concrete directive about what to do with the result. It never explicitly says when to prefer plot_xy or plot_bar instead, so the exclusion half of the guidance is only implied.

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

Deploy Server

Other Tools