Table or chart
data_table_vs_chartDecide whether data belongs in a table, small multiples, a sparkline or a chart. Pass rows, cols (numeric columns or series), purpose (lookup, compare, pattern, monitor), precision (exact or approximate), space (inline, tiny, normal, large), timeSeries (boolean), mixedUnits (boolean), groups (how many comparable series or panels could be drawn) and optionally audience (general, analyst, executive). Returns recommendation, alternatives, reasons and cautions. The logic follows the table-versus-graph reasoning in Stephen Few (Show Me the Numbers) and Edward Tufte's small multiples and sparklines, but the rules and the wording are our own. Pure computation.
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": {
"rows": "<rows>",
"cols": "<cols>",
"purpose": "<purpose>"
},
"name": "data_table_vs_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | Yes | ||
| rows | Yes | ||
| space | No | ||
| groups | No | ||
| purpose | Yes | ||
| audience | No | ||
| precision | No | ||
| mixedUnits | No | ||
| timeSeries | No |