sheets_create_chart
Create bar, line, pie, or other charts in Google Sheets from a specified data range and sheet, with options for title, legend, and placement.
Instructions
Creates a chart in a Google Sheets spreadsheet
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": {
"spreadsheet_id": "<spreadsheet_id>",
"sheet_name": "<sheet_name>",
"data_range": "<data_range>",
"chart_type": "<chart_type>"
},
"name": "sheets_create_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | The title of the chart | |
| options | No | Additional chart options | |
| position | No | Where to place the chart | |
| chart_type | Yes | The type of chart to create | |
| data_range | Yes | The data range in A1 notation (e.g. A1:C20) | |
| sheet_name | Yes | The name of the sheet containing the data | |
| spreadsheet_id | Yes | The ID of the spreadsheet |