MCP tool reference
Tools available from the Grunt MCP Server
This page describes the public chart, table, and asset tools. Call tools/list on the MCP endpoint you use to retrieve its available tools and current input schemas.
Pass the exact name from that response as params.name in tools/call. Use the tool's inputSchema for the complete set of fields and supported values. Refresh cached definitions when you reconnect or change endpoints.
#Chart tools
| Tool | Purpose |
|---|---|
create_or_update_bar_chart | Create or update bar and column charts |
create_or_update_line_chart | Create or update line and index charts |
create_or_update_area_chart | Create or update area and 100% area charts |
create_or_update_waterfall_chart | Create or update waterfall charts |
create_or_update_combined_chart | Create or update charts that combine bar, column, and line series |
create_or_update_pie_or_donut_chart | Create or update pie and donut charts |
create_or_update_scatter_or_bubble_chart | Create or update scatter and bubble charts |
create_or_update_mekko_chart | Create or update Mekko and Marimekko charts |
create_or_update_dumbbell_chart | Create or update dumbbell charts |
create_or_update_radar_chart | Create or update radar (spider) charts |
create_or_update_gantt_chart | Create or update Gantt charts and project timelines |
Each chart tool accepts a chart definition and an optional assetId:
- Omit
assetIdto create an asset. - Include
assetIdto update the existing asset. - Pass rules and annotations as part of the chart definition.
#Example: create a column chart
After connecting and authenticating, send this JSON-RPC body to your MCP endpoint with method set to tools/call:
{
"jsonrpc": "2.0",
"id": "2",
"method": "tools/call",
"params": {
"name": "create_or_update_bar_chart",
"arguments": {
"assetName": "Quarterly revenue",
"chart": {
"data": {
"values": [
["", "Q1", "Q2"],
["Revenue", 120, 150]
]
},
"orientation": "vertical",
"stackingMode": "clustered"
}
}
}
}
data is an object whose values holds the rows, not a bare array. The first row names the categories. Each following row contains a series name and its values. For a new bar or column chart, supply data, orientation, and stackingMode. To update this chart later, add the returned assetId to arguments alongside chart.
#Table tools
| Tool | Purpose |
|---|---|
create_or_update_table | Create or update formatted tables and visual grids |
search_visual_assets | Find valid built-in icons and flag country codes for table settings |
The create_or_update_table tool accepts a table definition with cells (an object whose values holds the rows, like a chart's data) and optional settings. It supports formatting, conditional rules, merged cells, row and column sizing, icons, gauges, shapes, flags, images, logos, and in-cell charts. A new table needs cells. Include an assetId to update an existing table.
Use search_visual_assets before adding built-in icons or flags. It accepts a query, an asset type of all, icon, or flag, and a result limit from 1 to 50.
#Asset tools
| Tool | Purpose |
|---|---|
search_assets | Find saved charts and tables by name, or list them by most recent change |
fetch_latest_asset | Load the latest version and preview of a chart or table |
inspect_object | Read an asset's data, structure, settings, rules, and styles |
get_project_changes | Compare a known assetCommit with the latest asset version |
create_asset_link | Create an additional view link or an edit link for an existing asset |
get_rendering_fonts | List the font families the chart and table renderer has |
Use inspect_object before an exact update when you need the current data values, indexes, settings, or rule configuration.
Call get_rendering_fonts before you choose a brand font. The renderer substitutes a family it does not have and reports the substitution in warnings.
#Find an asset
Call search_assets with words from an asset's name in query to pick up earlier work. Only names are searched, not chart content. A word matches the start of a word in a name and tolerates a small typo. Omit query to list assets by their last content change; renaming an asset does not count as a change. Narrow the list with changedAfter and changedBefore (ISO 8601 dates), and change the order with sort (relevance, changed, created, or name).
Each entry in results has assetId, assetCommit, name, lastChangedAt, createdAt and, for personal connections, url, which opens the asset in the Grunt editor for the signed-in user. A url is not a share link. An asset created without a name has the name Untitled Asset and untitled: true. When nextCursor is set, call again with it as cursor and the same other arguments to get the next results. An organization connection searches the organization's assets.
#Share an asset
Call create_asset_link with assetId and an optional permission:
view(default) allows access to the rendered image, SVG, and underlying data.editgrants edit access and allows the Grunt PowerPoint add-in to load the complete model for local editing. It does not convert the asset into a built-in PowerPoint chart or automatically publish deck edits to the cloud.
The tool returns assetId, latestCommit, linkId, permission, and assetUrl in structuredContent. The assetUrl returns a JSON manifest. Follow links.svg.href for the image, links.export.href for object export, or links.data.href for data. Edit manifests also include links.project.href for the complete Grunt model. Use these returned URLs instead of constructing delivery URLs yourself.
When embedding an asset in PowerPoint, create one fresh edit link per asset per deck. Reuse it for repeated placements within that deck.
Link permission controls access to the asset. Editing through Grunt's tools also requires the applicable editor license or organization entitlement; an edit link does not assign a license. See Plans and AI access.
#Common response fields
Chart and table creation or update tools return:
structuredContent.assetIdstructuredContent.assetCommitstructuredContent.exportGuideUrlstructuredContent.warnings(when present)
They also return a PNG preview of the rendered asset.
When you create an asset, the tool also attempts to create a view link. On success, structuredContent includes assetUrl, linkId, and permission. If link creation fails, it includes linkError; the asset has still been created. Updating an existing asset returns its new assetCommit without creating another link.
fetch_latest_asset returns the current assetId, assetCommit, exportGuideUrl, and preview.
inspect_object returns the inspected components and, when available, workbook data. get_project_changes returns a structured description of changes since the supplied assetCommit. get_rendering_fonts returns structuredContent.availableFonts.
#Input validation rules
- Tool schemas reject unknown properties
- Typed settings must use a supported discriminator, such as
annotationType,ruleType, oraxisType - Invalid schemas return MCP tool errors
#Handle tool errors
Check both JSON-RPC errors and the tool result's isError field. An HTTP success response does not by itself mean the tool succeeded.
If a call reports an unknown tool, compare params.name with the current tools/list response from the same endpoint. Unknown-tool failures can also be reported as an internal error with a reference ID. See troubleshooting before changing permissions or retrying the request.