update-chart
Update a saved chart's configuration with partial updates for name, description, metrics, chart type, filters, sorts, and pivot settings.
Instructions
Update an existing saved chart's configuration.
This tool allows partial updates - you only need to provide the fields you want to change.
Updatable fields:
name: Chart namedescription: Chart descriptionmetric_query: JSON string with metricQuery updates (dimensions, metrics, filters, sorts, etc.)chart_config: JSON string with chartConfig updates (visualization settings)pivot_config: JSON string with pivotConfig updates
Common use cases:
Change sorting: metric_query: {"sorts": [{"fieldId": "table_field_name", "descending": false}]}
Update filters: metric_query: {"filters": {"dimensions": {"id": "root", "and": [...]}}}
Change chart type: chart_config: {"type": "cartesian", "config": {...}}
Add/remove dimensions or metrics: metric_query: {"dimensions": ["dim1", "dim2"], "metrics": ["metric1"]}
Important notes:
Uses PATCH endpoint - only provided fields are updated
For metric_query updates, provide only the keys you want to change
The tool merges your updates with the existing configuration
Use get-chart-details first to see current configuration
Example - Change sort to ascending by name:
chart_identifier: "My Chart Name"
metric_query: {"sorts": [{"fieldId": "table_column_name", "descending": false}]}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart_identifier | Yes | Chart name (exact match) or UUID to update | |
| name | No | Optional: New name for the chart | |
| description | No | Optional: New description for the chart | |
| metric_query | No | Optional: JSON string with metricQuery fields to update (e.g., sorts, filters, dimensions, metrics) | |
| chart_config | No | Optional: JSON string with chartConfig fields to update | |
| pivot_config | No | Optional: JSON string with pivotConfig to update. Use null to remove pivot. |