make_table_from_json
Convert a JSON array into a formatted ASCII, Unicode, or Markdown table, supporting headers, custom styles, and auto-formatting for numeric columns.
Instructions
Parse a JSON array and render as a table.
Accepts either:
A 2D array: [["Name", "Value"], ["alpha", "1"], ...]
An object with "headers" and "rows" keys: {"headers":["Name"], "rows":[["alpha"]]}
Args: json_data: JSON string has_header: If True (default), first row is treated as column headers fmt: "grid" (default), "box", "safe", or "pipe" style: Table style (for grid fmt) auto_format: Auto-detect numeric columns
Returns: Formatted table.
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": {
"json_data": "<json_data>"
},
"name": "make_table_from_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_data | Yes | ||
| has_header | No | ||
| fmt | No | grid | |
| style | No | mysql | |
| auto_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |