MCP Tools Reference
The InstaCharts MCP server gives AI apps 30 tools. Your AI assistant picks the right tool based on what you ask, so you don’t need to name tools in your prompts. This page lists each tool, what it does and the inputs it takes, which helps when you want to understand what an assistant can do or are building your own agent.
MCP server URL: https://api.instacharts.io/mcp
How the data is organized
Data lives in sheets, sheets live in workspaces, and each chart is built on one sheet. A typical flow is:
list_workspacesto pick a workspace.create_sheet,import_from_urlorcreate_upload_linkto add the data (orlist_sheetsandread_sheetto use data already in InstaCharts).update_chartto set up the sheet’s first chart, orcreate_chartfor another one.get_chart_imageto check how the chart looks.share_chartfor a public link and embed code.
To add a company logo, the assistant puts the image in the workspace’s shared assets with import_asset_from_url or
create_asset_upload_link, then places it on a chart with the images input of create_chart or update_chart, or
in a dashboard’s header with the logo input of create_dashboard or update_dashboard.
To build a dashboard, the assistant makes it with create_dashboard in a single call, with its theme, settings,
charts, KPI numbers, tables, text and slicers, which counts as one task. move_dashboard_widget adjusts the layout,
add_dashboard_widgets adds more widgets later, update_dashboard changes its theme, logo and custom colors, and
share_dashboard returns a link to it. A dashboard logo comes from the same shared assets as chart images.
Columns can be named by their header text or by their id. Each new sheet comes with a blank first chart, returned as
firstChartId, which the assistant sets up with update_chart.
Tool summary
| Tool | What it does | Permission | Task |
|---|---|---|---|
list_workspaces | Lists your workspaces and whether you can edit in each one | View | Free |
list_sheets | Lists the sheets in a workspace with their size | View | Free |
read_sheet | Reads a sheet’s columns and a page of its rows | View | Free |
list_charts | Lists the charts built on a sheet | View | Free |
get_chart_image | Renders a chart as a PNG image | View | 1 task |
create_sheet | Creates a sheet from CSV text or rows | Edit | 1 task |
import_from_url | Creates a sheet from a data file at a public link | Edit | 1 task |
create_upload_link | Returns a one-time link for uploading a data file | Edit | 1 task for the upload |
add_rows | Adds up to 1,000 rows to a sheet | Edit | 1 task |
update_rows | Changes cells in existing rows | Edit | 1 task |
delete_rows | Deletes rows from a sheet | Edit | 1 task |
create_chart | Creates a chart on a sheet | Edit | 1 task |
update_chart | Changes a chart’s columns, type and settings | Edit | 1 task |
share_chart | Makes a chart public and returns its link and embed code | Edit | 1 task |
list_assets | Lists the images in a workspace’s shared assets | View | Free |
import_asset_from_url | Adds an image from a public link to the shared assets | Edit | 1 task |
create_asset_upload_link | Returns a one-time link for uploading an image file | Edit | 1 task for the upload |
list_dashboards | Lists the dashboards in a workspace | View | Free |
read_dashboard | Reads a dashboard’s theme, pages, sheets and widgets | View | Free |
create_dashboard | Creates a dashboard, with its widgets, slicers and settings in the same call | Edit | 1 task |
update_dashboard | Changes a dashboard’s settings: theme, logo, custom colors, title bar and pages | Edit | 1 task |
update_dashboard_page | Renames a dashboard page or changes its icon | Edit | 1 task |
delete_dashboard_page | Deletes a dashboard page and moves its widgets to the first page | Edit | 1 task |
move_dashboard_widget | Moves a widget to another row, a new row or another page | Edit | 1 task |
add_dashboard_widgets | Adds up to 20 chart, KPI, table and text widgets to a dashboard | Edit | 1 task |
update_dashboard_widget | Changes a widget’s title, size, KPI, table columns or text | Edit | 1 task |
delete_dashboard_widget | Deletes a widget from a dashboard | Edit | 1 task |
share_dashboard | Shares a dashboard publicly or with the workspace and returns its link | Edit | 1 task |
add_dashboard_slicers | Adds slicers (column filters) to a dashboard page | Edit | 1 task |
delete_dashboard_slicer | Removes a slicer from a dashboard | Edit | 1 task |
Tools that need the edit permission only appear when you approve Create and edit your sheets, charts, dashboards and embeds while connecting the AI app. See Permissions and Tasks.
Read tools
list_workspaces
Lists the workspaces your account can use, and whether you can edit in each one. This is where the assistant finds a
workspaceId. Only workspaces on a paid plan are listed.
list_sheets
Lists the sheets (data tables) in a workspace along with their size.
| Input | Required | Description |
|---|---|---|
workspaceId | Yes | The workspace to list |
read_sheet
Reads a sheet’s columns (id, name and type) and a page of its rows. Each row has a rowId that update_rows and
delete_rows use.
| Input | Required | Description |
|---|---|---|
sheetId | Yes | The sheet to read |
offset | No | Rows to skip. Default 0 |
limit | No | Rows to return. Default 100, at most 1,000 |
list_charts
Lists the charts built on a sheet. Charts made for dashboard widgets are listed by read_dashboard instead, the same as
the sheet’s chart list in the editor.
| Input | Required | Description |
|---|---|---|
sheetId | Yes | The sheet whose charts to list |
get_chart_image
Renders a chart as a PNG image so the assistant can see how it looks. Counts as one task.
| Input | Required | Description |
|---|---|---|
chartId | Yes | The chart to render |
Sheet tools
create_sheet
Creates a sheet in a workspace from CSV text or an array of rows, with the header row first. Column types (text,
number, date, percent, currency) are detected from the values, and the workspace’s plan limits the rows and columns.
Returns the new sheet with its columns and firstChartId.
| Input | Required | Description |
|---|---|---|
workspaceId | Yes | The workspace for the new sheet |
name | No | Sheet name, up to 100 characters |
csv | One of csv or rows | Comma separated text with a header row |
rows | One of csv or rows | Rows of cell values, header row first |
This tool suits small datasets. For a file at a public link use import_from_url, and for a local file or more than
a few hundred rows use create_upload_link.
import_from_url
Creates a sheet from a data file at a public web address. InstaCharts downloads the file itself, so the data never has to pass through the conversation. Good sources include an open data portal’s CSV or JSON export link, a raw file on GitHub (raw.githubusercontent.com) or a Google Sheet published to the web as CSV.
The link has to download the file directly, be public and use https://. A link to a web page that displays the data
is refused. CSV, TSV, Excel, OpenDocument, Numbers and JSON files work, up to the plan’s file size. An Excel file with
several pages makes one sheet per page.
| Input | Required | Description |
|---|---|---|
workspaceId | Yes | The workspace for the new sheet |
url | Yes | The https:// address of the file |
name | No | Sheet name. Without one, the sheet takes the file’s name |
To keep a sheet in sync with a link from the InstaCharts app, see Import and Sync from a Link.
create_upload_link
Returns a one-time upload link (uploadUrl) that turns a data file into a new sheet. This is meant for files and
datasets too large to send as CSV text. The file has to be sent within 15 minutes as an HTTP POST with
multipart/form-data, with the file in a field named file:
curl -F "file=@sales.csv" <uploadUrl>On Windows PowerShell use curl.exe. CSV, TSV, Excel, OpenDocument, Numbers and JSON files work, up to the size in
maxFileSizeMB. The upload’s response is the new sheet, the same as create_sheet returns. Each link works once.
Creating the link is free, and the upload counts as one task.
This tool needs an AI app that can send a file, such as one that can run commands (ex: Claude Code) or make HTTP requests.
| Input | Required | Description |
|---|---|---|
workspaceId | Yes | The workspace for the new sheet |
name | No | Sheet name. Without one, the sheet takes the file’s name |
add_rows
Appends up to 1,000 rows to a sheet. Each row is an object of column name (or id) and value. Every chart on the sheet updates with the new rows.
| Input | Required | Description |
|---|---|---|
sheetId | Yes | The sheet to add to |
rows | Yes | Ex: [{"Region": "East", "Sales": 120}] |
update_rows
Changes cells in existing rows, found by the rowId from read_sheet. Only the columns sent are changed.
| Input | Required | Description |
|---|---|---|
sheetId | Yes | The sheet to change |
changes | Yes | Up to 1,000 changes. Ex: [{"rowId": 3, "values": {"Sales": 150}}] |
delete_rows
Deletes rows by the rowId from read_sheet. Deleted rows can’t be recovered.
| Input | Required | Description |
|---|---|---|
sheetId | Yes | The sheet to change |
rowIds | Yes | Up to 1,000 row ids |
Chart tools
create_chart
Creates a chart on a sheet. The workspace’s saved theme, fonts, colors and locale are applied.
xis the category or date column.yis the number column being measured. Withouty, the chart counts rows for eachxvalue.groupBysplits the values into series for grouped and stacked chart types. On a heatmap it is the second category.aggregatedefaults to sum for a number column and count for other columns.filterslimits the chart to the rows that match, such as three countries out of a list of hundreds.limitshows only the top items, such as a top 5 chart.
| Input | Required | Description |
|---|---|---|
sheetId | Yes | The sheet to chart |
type | Yes | The chart type (see below) |
x | Yes | Column name or id for the x axis |
y | No | Column name or id for the values |
groupBy | No | Column name or id that splits the data into series |
aggregate | No | sum, count, average, median, min, max, distinct, valid or missing. See Aggregation |
dateGrouping | No | year, quarter, month, week, day, monthOfYear or dayOfWeek |
title | No | Chart title |
subtitle | No | Chart subtitle |
caption | No | Text under the chart |
xTitle | No | Title on the x column’s axis. See Axis titles |
yTitle | No | Title on the y column’s axis. See Axis titles |
showAxisTitles | No | true shows both axis titles and false hides them |
name | No | Chart name in the sheet’s chart list |
theme | No | A chart theme, such as midnight or studio. See Colors |
colorScheme | No | One of the InstaCharts color schemes. See Colors |
color | No | Hex color for plain bar, line, area and scatter charts, such as #1f77b4 |
bgColor | No | Hex background color for the chart |
textColor | No | Hex color for the chart’s text |
sort | No | auto, x, y or none |
sortDescending | No | true puts the largest value or last label first |
horizontal | No | Bar charts only. Horizontal bars suit long category names |
width, height | No | Chart size in pixels, 200 to 3,000 |
gaugeMin, gaugeMax, gaugeTarget | No | Gauge charts only |
images | No | Logos and other images drawn on the chart. See Images |
filters | No | The rows the chart uses. See Filters |
limit | No | How many items the chart shows. See Limit |
Colors
New charts start with the workspace’s saved theme and colors. These inputs change them on one chart:
themeapplies one of the chart themes, which sets the background, palette, fonts and grid together. The themes areclassic,midnight,studio,broadsheet,neon,ember,financialLight,financialDark,pastelandcode. Any of the color inputs below sent withthemechange that part of the theme.colorSchemeis the palette for grouped charts, pie charts and heatmaps. Sending it withoutcoloralso sets plain charts to the palette’s first color.coloris the single color that plain bar, line, area and scatter charts draw with.nulluses the color scheme’s first color.bgColoris the chart’s background color.nullmakes the background transparent, so the page behind an embedded chart shows through.textColoris the main color for the title, subtitle, axis labels and legend.nullgoes back to the built in text colors. Text items with a color of their own in the editor keep that color.
Colors are hex values such as #1f77b4, #fff or #1f77b480, where the last two digits set the transparency. The
chart in the response lists its current theme, colorScheme, color, bgColor and textColor. These are the same
settings as the color and font panels in the editor.
Axis titles
Each axis is titled with its column name until the AI app sends a title of its own. The y axis title also names the
aggregate, such as Sales (sum).
xTitleandyTitlereplace the column name with your own text, up to 100 characters.- Send
nullforxTitleoryTitleto go back to the column name. - Send
""to hide the title on one axis. showAxisTitlesshows or hides the titles on both axes.
On a heatmap, yTitle titles the vertical axis, which shows the groupBy column. The chart in the response lists its
current xTitle, yTitle and showAxisTitles, and a null title means the axis uses its column name. These are the
same settings as Axis Titles in the editor.
Images
images draws images from the workspace’s shared assets on the chart, such as a company logo in a
corner. Each image needs an assetId:
[{"assetId": "6f1c2d3e-...", "position": "bottomRight", "width": 80}]| Field | Description |
|---|---|
assetId | The image, from list_assets, import_asset_from_url or an asset upload |
position | topLeft, topRight, bottomLeft, bottomRight (default) or center |
width | Width in pixels. The image keeps its shape. Without a width, the image takes up at most a fifth of the chart |
opacity | 0 to 100. 100 (default) is solid |
layer | over (default) draws the image on top of the data, and under draws it behind the data, for a watermark |
Sending images replaces every image on the chart, including images added in the editor, and null removes them
all. A chart can have up to 10 images, and each one keeps its corner and shape when an embedded chart is resized.
The chart in the response lists its images with their position and size in pixels. You can move or resize them
later in the editor.
Limit
limit controls how many x values or series the chart shows. Charts made by an AI app start with every item showing,
including the sheet’s first chart. For a top 5 chart, send:
{"mode": "top", "count": 5}| Field | Description |
|---|---|
mode | off shows every item, top keeps count items, and auto keeps the 50 largest x values when there are more than 50 |
count | Items to keep, 1 to 999. Sending count on its own turns on top |
keep | largest (default) or smallest values |
axis | x (default) limits the x values, and groupBy limits the series of grouped and stacked charts |
groupOthers | true combines the remaining items into one All Others item. Works on text columns |
Auto Limit keeps the largest values, so on a Year or number x axis with more than 50 values it drops the smallest
ones, which are often the earliest years. On update_chart, only the limit fields sent change. Gauge charts show a single value, so limit applies to the other chart types. These are the same settings as
Limit Top Items in the editor.
Filters
filters is a list of filters, each on one column. A row has to pass every filter to appear in the chart. Each filter
has a column, a condition and up to 5 values:
[ {"column": "Country", "condition": "equals", "values": ["United States", "China", "India"]}, {"column": "Year", "condition": "between", "values": [2000, 2020]}]| Column type | Conditions |
|---|---|
| Text | equals, notEqual, contains, notContains, startsWith, endsWith |
| Number | equals, notEqual, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, between |
| Date | equals, notEqual, before, after, between |
| Every type | blank, notBlank, and none to remove the column’s filter |
- A row passes
equals,contains,startsWithorendsWithwhen it matches any of the values. - A row passes
notEqualornotContainswhen it matches none of the values. - Comparisons,
beforeandaftertake one value, andbetweentakes[from, to]. - Dates are written as
yyyy-mm-dd, and text matching ignores case. - Text values can be up to 2,000 characters each.
These are the same filters you can set on a chart in the InstaCharts editor, so you can review or change them there later. Read more about filtering chart data.
Chart types
type | Chart | Uses groupBy |
|---|---|---|
bar | Bar Chart | No |
stackedBar | Stacked Bar Chart | Yes |
groupedBar | Grouped Bar Chart | Yes |
line | Line Chart | No |
groupedLine | Grouped Line Chart | Yes |
scatter | Scatterplot Chart | No |
groupedScatter | Grouped Scatterplot Chart | Yes |
area | Area Chart | No |
groupedArea | Grouped Area Chart | Yes |
pie | Pie Chart | No |
radar | Radar Chart | Yes |
heatmap | Heatmap Chart | Yes |
mekko | Mekko Chart | Yes |
gauge | Gauge Chart | No |
groupedGauge | Grouped Gauge Chart | Yes |
Date grouping
dateGrouping applies to date columns on the x axis. year, quarter, month, week and day follow the
timeline. monthOfYear and dayOfWeek combine every year into 12 months or 7 weekdays. When it isn’t set, dates
spanning more than 5 years are grouped by year, and dates spanning 2 to 5 years are grouped by month.
update_chart
Changes an existing chart, including the sheet’s blank first chart. Only the fields sent are changed. It takes
chartId plus any of the create_chart inputs. Send null for groupBy or y to clear it.
filters only changes the columns it names, and the chart’s other filters stay in place. Use the none condition to
remove one column’s filter, or send null for filters to remove every filter. The chart in the response lists its
current filters.
| Input | Required | Description |
|---|---|---|
chartId | Yes | The chart to change |
share_chart
Makes a chart public and returns its share link (shareUrl), its embed URL and the iframe embed code. Anyone with the
link can see the chart. Send active: false to make the chart private again.
| Input | Required | Description |
|---|---|---|
chartId | Yes | The chart to share |
active | No | true shares the chart (default), false stops sharing |
Read more about sharing charts and embedding charts in a website.
Asset tools
Asset tools add images, such as a company logo, to the workspace’s shared assets. These are the same images as the
Shared Logos folder in the editor, so every sheet in the workspace can use them, and you can manage them as
Shared Assets in Workspace Settings. Images can be PNG, JPG, BMP or WebP files
up to 2 MB, and they count toward the workspace’s storage. To place an image on a chart, send its assetId in the
chart’s images. To put it in a dashboard’s header, send it as the dashboard’s logo.
list_assets
Lists the images in a workspace’s shared assets with their assetId, name, width and height in pixels, and size in
bytes. Listing assets is free.
| Input | Required | Description |
|---|---|---|
workspaceId | Yes | The workspace to list |
import_asset_from_url
Downloads an image from a public link, such as the logo on your company’s website, into the workspace’s shared assets.
The link has to point at the image file itself and use https://. Returns the new asset with its assetId.
| Input | Required | Description |
|---|---|---|
workspaceId | Yes | The workspace for the image |
url | Yes | The https:// address of the image |
name | No | Asset name. Without one, the image takes the file’s name |
create_asset_upload_link
Returns a one-time upload link (uploadUrl) that adds a local image file to the workspace’s shared assets. The file
has to be sent within 15 minutes as an HTTP POST with multipart/form-data, with the file in a field named file:
curl -F "file=@logo.png" <uploadUrl>The upload’s response is the new asset with its assetId. Each link works once. Creating the link is free, and the
upload counts as one task. This tool needs an AI app that can send a file, such as one that can run commands
(ex: Claude Code) or make HTTP requests.
| Input | Required | Description |
|---|---|---|
workspaceId | Yes | The workspace for the image |
name | No | Asset name. Without one, the image takes the file’s name |
Read more about image annotations in the editor.
Dashboard tools
Dashboard tools build dashboards that put several charts, KPI numbers, data tables and
notes on one page. A dashboard lives in a workspace, and its widgets can use any sheet in that workspace. Dashboards an
AI app builds are regular InstaCharts dashboards, so you can open them with their editUrl and keep editing them in the
dashboard editor.
list_dashboards
Lists the dashboards in a workspace with their id, name, theme, whether each one is shared, and its editUrl.
| Input | Required | Description |
|---|---|---|
workspaceId | Yes | The workspace to list |
read_dashboard
Reads a dashboard’s theme, its settings, pages, slicers, the
sheets on it and its widgets in layout order. The settings are showTitleBar, logo, customTheme, showPages and
pageMenuStyle, in the same form update_dashboard takes them. sharing tells who can open the dashboard’s link:
private, public or workspace. Each widget has its id, type, title, width, height and row. A chart widget also has
the chartId of its chart, which works with update_chart and get_chart_image. A KPI widget lists how its number is
calculated, a table widget its columns and a text widget its text. With pages on, each page lists its own slicers.
Without pages, the dashboard’s slicers are listed in slicers.
| Input | Required | Description |
|---|---|---|
dashboardId | Yes | The dashboard to read |
create_dashboard
Creates a dashboard in a workspace and returns it with its id, its widgets and editUrl. The assistant can send the
dashboard’s widgets, slicers and settings in the same call, so a whole dashboard is built as one task. Everything is
checked before the dashboard is made, so a mistake in one widget comes back as an error with nothing created.
| Input | Required | Description |
|---|---|---|
workspaceId | Yes | The workspace for the dashboard |
name | No | The dashboard’s name in your workspace. Default New Dashboard |
title | No | The title in the dashboard’s header. Without one, the dashboard uses its name |
description | No | A short description, up to 255 characters |
theme | No | The dashboard’s look. New dashboards start on minimal |
widgets | No | Up to 20 widgets, with the same inputs as add_dashboard_widgets. Leave it out for an empty dashboard |
slicers | No | Slicers, with the same inputs as add_dashboard_slicers. A slicer can use a column of any sheet the widgets use |
showTitleBar, logo, customTheme, showPages, pageMenuStyle | No | The same settings as update_dashboard. With showPages on, the widgets go on Page 1 |
The themes are the same as in the dashboard settings. A theme sets the page and widget colors, the fonts, and the chart theme and color palette the dashboard’s charts use.
| Theme | Look |
|---|---|
minimal | Light grey page, white widgets and muted blue charts. Plain and neutral, it suits any data |
executive | Light grey page, dark green header, white widgets and green charts, for business reports |
studio | White page, blue header, outlined white widgets and blue charts |
midnight | Dark navy page and widgets with cyan charts and the Inter font, for screens and social posts |
broadsheet | Cream parchment page, black header, boxed square widgets and the Playfair Display font, a newspaper look |
neon | Near black page, dark widgets, bright teal charts and the Montserrat font, with high contrast |
ember | Warm off white page, orange header, rounded widgets, orange charts and the Poppins font |
financialLight | Light slate page, white boxed widgets, blue charts and the Inter font, for finance and market data |
financialDark | Dark grey page, black boxed widgets, blue charts and the Inter font, a trading terminal look |
pastel | Off white page, purple header, very rounded widgets, soft pastel charts and the Poppins font |
code | Dark grey page, black widgets, green text and charts, and the JetBrains Mono font, a coder’s terminal look |
The assistant also receives dashboard design guidance when it connects, based on the rules the InstaCharts AI dashboard designer follows: a row of KPIs at the top, rows of two or three varied charts, a table when the rows help, and one or two slicers on category or date columns.
update_dashboard
Changes a dashboard’s settings, the same ones as the dashboard settings dialog. Only the
fields sent are changed. A new theme restyles the chart in every chart widget to match it, and custom chart colors and a
custom widget background reach the chart widgets too. Picking a new theme turns the custom theme off, the same as in the
dashboard settings, so a customTheme sent in the same request customizes the new theme.
| Input | Required | Description |
|---|---|---|
dashboardId | Yes | The dashboard to change |
name, title, description | No | The same as in create_dashboard |
theme | No | The dashboard’s theme |
showTitleBar | No | true shows the header with the dashboard’s title and logo, false hides it |
logo | No | The logo in the dashboard header, see below. null removes it |
customTheme | No | Custom colors, sizes and fonts on top of the theme, see below. null goes back to the theme as it is |
showPages | No | true turns pages on, false turns them off |
pageMenuStyle | No | What the page menu shows for each page: iconsAndText, text or icons |
restyleCharts | No | false leaves the chart widgets’ charts as they are when the theme or custom colors change. Default true |
Turning pages on makes the dashboard’s current widgets Page 1. Turning them off puts every page’s widgets on one page, and the pages come back when they are turned on again.
Logo
A dashboard logo is an image from the workspace’s shared assets, the same images charts use. The assistant adds one with
import_asset_from_url or create_asset_upload_link, or finds one with list_assets, then sends its assetId. Adding
a logo is available on paid plans.
| Input | Description |
|---|---|
assetId | The image to show. A dashboard without a logo needs one |
side | left (the default) or right |
size | The logo’s height in pixels, from 12 to 80. The header’s height limits how large it shows |
padding | Space around the logo inside its background, from 0 to 16 pixels |
backgroundColor | A hex color for a box behind the logo. null lets the header color show through |
Settings the assistant leaves out keep what the logo already has, so a new assetId keeps the logo’s side and size.
Custom theme
customTheme changes the same settings as Customize Theme in the dashboard settings. Settings sent go on top of
what the dashboard shows now and the others stay. A setting or a whole section sent as null goes back to the
theme’s value, the same as the Reset to Theme button. Colors are hex colors like #1e293b.
| Section | Settings |
|---|---|
header | color, height (32 to 120 pixels), titleColor, titleSize, titleFont |
page | color, the page behind the widgets |
widgets | backgroundColor, showBorder, borderColor, borderWidth (0 to 10), cornerRadius (0 to 24) |
charts | colorScheme and color, the palette and single color chart widgets draw with |
pageMenu | color, itemPadding (2 to 20), activeColor, activeTextColor, font, textColor, fontSize, iconSize (12 to 32) |
Font sizes are 8, 10, 12, 14, 16, 18, 20, 24, 30, 36, 48, 72 or 96. Fonts are Google font names, such as Inter or
Playfair Display. A widget backgroundColor also goes behind the chart widgets’ charts, so every widget matches.
Ex: {"customTheme": {"header": {"color": "#1e293b", "titleColor": "#ffffff"}, "charts": {"colorScheme": "tableau10"}}}
update_dashboard_page
Renames a dashboard page or changes its icon in the page menu. Only the fields sent are changed.
| Input | Required | Description |
|---|---|---|
dashboardId | Yes | The dashboard the page is on |
pageId | Yes | The page to change, from read_dashboard |
title | No | The page’s name in the page menu |
icon | No | The page’s icon, any page icon by name, such as payments or school |
delete_dashboard_page
Deletes a dashboard page, the same as Delete Page in the editor. The page’s widgets move to the end of the first
page left, and the page’s slicers are removed. A dashboard with pages keeps at least one page, so to go back to a single
page the assistant turns pages off with update_dashboard and showPages: false. The response includes
movedToPageId.
| Input | Required | Description |
|---|---|---|
dashboardId | Yes | The dashboard the page is on |
pageId | Yes | The page to delete, from read_dashboard |
move_dashboard_widget
Moves a widget, the same as dragging it in the dashboard editor. Row numbers are the ones read_dashboard shows
before the move. The widget keeps its width and height, and the response includes a warning when a row’s widgets add
up to more than 12 columns, so the assistant can narrow them with update_dashboard_widget.
| Input | Required | Description |
|---|---|---|
widgetId | Yes | The widget to move |
row | No | The row the widget joins. With newRow, the row the new row goes above |
position | No | Where in the row the widget goes, 1 for the left end. Default is the right end |
newRow | No | true puts the widget in a row of its own, above row or at the bottom |
pageId | No | For dashboards with pages, the page to move the widget to. It goes at the bottom unless row or newRow says where |
add_dashboard_widgets
Adds up to 20 widgets to the end of a dashboard in one call, which counts as one task. Sheets the widgets use are added to the dashboard automatically, and they have to be in the dashboard’s workspace.
| Input | Required | Description |
|---|---|---|
dashboardId | Yes | The dashboard to add to |
widgets | Yes | The widgets to add, in order |
pageId | No | For dashboards with pages, the page to add to. Default is the first page |
newPage | No | Puts the widgets on a new page at the end, with a title and an icon. Send this or pageId |
Each widget takes these inputs:
| Input | Description |
|---|---|
type | chart, kpi, table or text |
sheetId | The sheet the widget shows. Chart and table widgets need one, and so does a calculated KPI |
title | A chart widget uses it as the chart title, a KPI widget as its label, and a table or text widget shows it in its title bar |
showTitle | Shows or hides the widget’s title bar. Table and text widgets with a title show it. Chart and KPI widgets show their own title, so theirs starts hidden |
subtitle | Text under the title in the widget’s title bar |
backgroundColor | A hex color for the widget’s background. A chart widget’s chart uses it too. null goes back to the dashboard theme’s color |
width | How many of the row’s 12 columns the widget takes |
height | The widget’s height in grid units, from 1 to 8 |
newRow | true starts a new row with this widget. With row, the new row goes above that row |
row | Puts the widget in a row the page already has, numbered the way read_dashboard shows them (ex: one more KPI in row 1) |
position | With row, where in the row the widget goes, 1 for the left end. Default is the right end |
chartId | Chart widgets only. Copies an existing chart onto the dashboard instead of building a new one, see below |
chart | Chart widgets only. The same inputs as create_chart, such as type, x, y, groupBy and filters |
kpi | KPI widgets only. How the number is calculated, see below |
columns | Table widgets only. The columns to show, in order. Without it, the table shows every column |
paging | Table widgets only. true splits the rows into pages of 100, false shows every row |
sort | Table widgets only. How the rows are sorted, see below |
filters | Table widgets only. The rows the table shows, see below |
text | Text widgets only. The text to show, see below |
Widgets fill rows from left to right, the same way the dashboard’s AI designer places them. A widget goes in the last
row when it fits there and starts a new row when it doesn’t. Without a width and height, each type gets a size that
suits it: KPI widgets are 2 columns wide, chart widgets 4 and table widgets 6. A widget that joins a row takes that
row’s height, and chart and KPI widgets always sit in separate rows. A common layout is a row of 4 to 6 KPIs, then rows
of 2 or 3 charts, then a table.
Every row the new widgets go into is then filled to all 12 columns. The leftover columns are shared by the new widgets
sent without a width, so 4 KPIs become 3 columns wide each and a table next to a note takes the rest of its row.
Widths the assistant sends stay as sent, and the response includes a warning when a row’s widgets add up to more than
12 columns. The same layout rules apply to the widgets sent with create_dashboard.
A chart widget’s chart uses the dashboard theme’s chart style and colors. A theme, colorScheme or color sent in
chart is applied on top of the dashboard theme.
Copy an existing chart
A chart widget with a chartId copies that chart onto the dashboard, such as a chart you already made on a sheet. The
copy keeps the chart’s own look, and its sheet comes from the chart, so sheetId can be left out. The chart has to be in
the dashboard’s workspace, and list_charts or read_dashboard gives its id. The original chart stays as it is. Inputs
sent in chart change the copy, the same way update_chart changes a chart, such as a theme to match the dashboard.
New pages
newPage puts the widgets on a new page at the end of the dashboard’s page menu, such as one page per topic. It takes a
title and an icon, any of the page icons in the editor’s page dialog by name, such as payments, shopping_cart,
group, campaign, trending_up, school or insights (the default). A dashboard without pages turns them on, and the
widgets it already had become Page 1. A dashboard can have up to 20 pages. The response includes the new page’s
pageId.
KPI widgets
A KPI widget shows one number, such as total revenue or the number of orders. With a column, the number is
calculated from the sheet, updates when the data changes and follows the dashboard’s
slicers. Without one, the widget shows the value text as typed. The kpi input covers
every setting in the editor’s KPI Value, Trend and Overline panels, and update_dashboard_widget changes only the
settings it sends.
Value
| Input | Description |
|---|---|
column | The column the number is calculated from |
aggregate | The statistic. Default is sum for number columns, count for text columns and latestDate for date columns |
dateColumn | The date column a period counts back on. null removes the period |
period | Narrows the number to recent data. A new period also turns on a calculated trend |
periodEnd | latest (default) ends the period on the latest date in the data, today ends it today |
value | Text to show instead of a calculated number, such as 98% |
caption | Text under the value, such as Across all regions |
sum, average, median, min, max and standardDeviation need a number column. count, distinct, filled,
empty, filledPercent, emptyPercent and distinctPercent work on any column. earliestDate, latestDate,
dateRangeDays, dateRangeMonths and dateRangeYears need a date column.
The periods are all, last7, last30, last90, last12m, week, month, quarter, year, prevWeek,
prevMonth, prevQuarter and prevYear. month, quarter and year cover the period so far, prevMonth and the
others starting with prev cover the last complete one, and the last periods count back from the period’s end.
Ending on the latest date suits imported data, and ending today suits a sheet that gets new rows every day.
Format
| Input | Description |
|---|---|
numberFormat | How a calculated number is written, see below. Default auto follows the column, such as a currency format for a currency column |
customFormat | A custom number format, such as 0,0.[0] km. Sending it sets numberFormat to custom |
significantDigits | Rounds the number before it’s formatted, from 1 to 3. 2,567,567 at 2 shows as 2.6M. 0 keeps every digit |
numberLocale | The separators and currency symbol, by locale id, such as en-US, en-GB, de-DE or ja-JP. A new calculated KPI uses the workspace’s default locale |
prefix | Text before the number, such as $, up to 20 characters |
suffix | Text after the number, up to 20 characters |
The number formats are auto, abbreviated (4.2m), abbreviatedPrecise (4.23m), thousands (1.5k), millions
(1.5m), billions, trillions, integer (1234), integerSeparators (1,234), decimal (54.12), percent (12%),
percentTimes100 (0.12 as 12%), currency ($3.50), currencyAbbreviated ($650k), currencyThousands,
currencyMillions, currencyBillions, currencyTrillions, ordinal (1st), bytes (1.95KB), duration (0:04:59)
and custom.
Overline
The overline is the label and icon above the value. The widget’s title is the label, and a title turns the overline on.
| Input | Description |
|---|---|
showLabel | Shows or hides the overline |
showIcon | Shows or hides the icon next to the label |
icon | The icon next to the label |
iconColor | A hex color for the icon. null uses the dashboard theme’s first chart color |
Trend
The trend input sets the trend under the value. A calculated trend compares the value’s time period with an earlier
one, using the same statistic, so it needs a dateColumn and a period. A typed trend shows a percent you give, which
works on any KPI. Sending other trend inputs shows the trend, and null hides it.
| Input | Description |
|---|---|
show | Shows or hides the trend |
calculated | true calculates the trend from the data, false shows the typed value |
compare | Calculated trends. previous (default) is the period before, lastYear is the same period a year earlier, and all is all time |
label | Calculated trends. Replaces the text made from the period, such as vs last month, up to 40 characters |
value | Typed trends. The percent change, such as 5.2 or -2.1 |
period | Typed trends. The text after the percent, such as vs last month, up to 40 characters |
lowerIsBetter | Shows a decrease in green and an increase in red, for costs, churn or wait times |
Comparing with all works for averages, medians, minimums, maximums, standard deviations and the percent statistics. A
sum or count for a period is always a part of all time, so those compare with previous or lastYear.
{"type": "kpi", "sheetId": "...", "title": "Revenue this month", "kpi": {"column": "Revenue", "aggregate": "sum", "dateColumn": "Order Date", "period": "month", "numberFormat": "currencyAbbreviated", "caption": "All regions", "trend": {"compare": "lastYear", "label": "vs this month last year"}}}Table widgets
A table widget shows a sheet’s rows. columns picks the columns and their order. A new table splits its rows into pages
of 100 when the sheet has 100 rows or more, and paging turns that on or off.
sort takes up to 5 columns, sorted in the order listed, each with a direction of asc (the default) or desc.
filters takes the same filters as create_chart, and viewers see them in the table’s column filter menus,
where they can change them. Sorts and filters use columns the table shows, and a column taken out of columns takes its
sort and filter with it. On an update, a filter only changes its own column, the none condition removes one, and
null removes them all. sort: null removes the sort.
{"type": "table", "sheetId": "...", "title": "Open deals", "columns": ["Customer", "Region", "Revenue"], "sort": [{"column": "Revenue", "direction": "desc"}], "filters": [{"column": "Status", "condition": "equals", "values": ["Open"]}]}Text widgets
A text widget shows notes, a summary or key findings. In text, lines starting with #, ## or ### become
headings, lines starting with - become bullet points, lines starting with 1. become a numbered list, and
**text** is bold. Every other line is a paragraph.
update_dashboard_widget
Changes a widget’s title, showTitle, subtitle, backgroundColor, width, height, kpi, columns, paging,
sort, filters or text. Only the fields sent are changed. A KPI
widget can move to another sheet with sheetId, sent along with a kpi.column from that sheet. To change what a chart
widget plots or how it looks, the assistant uses update_chart with the widget’s chartId.
| Input | Required | Description |
|---|---|---|
widgetId | Yes | The widget to change |
delete_dashboard_widget
Deletes a widget from its dashboard. A chart widget’s chart is deleted along with it. This can’t be undone.
| Input | Required | Description |
|---|---|---|
widgetId | Yes | The widget to delete |
share_dashboard
Shares a dashboard and returns its share link (shareUrl). With access set to public, anyone with the link can see
the dashboard. With workspace, only members of the dashboard’s workspace can see it after signing in. Send
active: false to make the dashboard private again.
| Input | Required | Description |
|---|---|---|
dashboardId | Yes | The dashboard to share |
active | No | true shares the dashboard (default), false stops sharing |
access | No | public (the default) or workspace |
Read more about sharing dashboards.
add_dashboard_slicers
Adds slicers to a dashboard page. A slicer is a filter on one column: a viewer picks values, such as a region or a year, and every widget on the page that uses that column’s sheet shows only the matching rows. A slicer can use any column of a sheet that a widget on the page uses, and each column gets one slicer. A column that already has one is left as it is. The response lists every slicer on the page.
| Input | Required | Description |
|---|---|---|
dashboardId | Yes | The dashboard to add to |
slicers | Yes | Up to 20 slicers, each with a column, plus a sheetId when the page’s widgets use more than one sheet, and an optional label. The label defaults to the column name |
pageId | No | For dashboards with pages, the page to add to. Default is the first page |
delete_dashboard_slicer
Removes a slicer by the slicer id read_dashboard lists. The page’s widgets go back to showing every row.
| Input | Required | Description |
|---|---|---|
dashboardId | Yes | The dashboard the slicer is on |
slicerId | Yes | The slicer to remove |
Related
- Connect AI Apps with the MCP Server - set up Claude, ChatGPT and Claude Code
- Tasks - how tasks are counted
- All Chart Types - every chart InstaCharts can make
- Dashboards - build dashboards in the InstaCharts app