Make a new dashboard
create_dashboardMakes a new Data Studio dashboard in the workspace, saved as made by the assistant for the person, from a template (list_dashboard_templates gives the ids) or from a whole document you wrote. Send template or document, not both. The document is checked strictly and nothing is made if a panel is wrong; the answer then says what. The workspace's members see it in Data Studio at once. The answer gives the new dashboard's id and version.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_dashboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | With a template: the dashboard's name. Left out: the template's. | |
| document | No | In place of template: the whole first version. A dashboard document is { schemaVersion: 1, title, description, projects: "all" or [project ids], range: { kind: "last", amount, unit: hour|day|week|month } or { kind: "between", from, to }, filters: [{ dimension, op, values }], panels: [...] }. Each panel has a unique id, a title, layout { x, y, w, h } on a 12-column grid, filters (a list, may be empty) and its kind: number { metric, compare }, trend { metrics (1 to 3), grain }, bars { metric, dimension, limit }, table { metric, dimension, limit }, note { text }. Metric and dimension ids come from list_dashboard_metrics; read_dashboard shows a real document to copy from. | |
| template | No | A template's id, such as site-overview or blank. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| idempotency_key | No | Any unique text. Sending the same key again answers the dashboard the first call made and makes no second one, so a retry after a lost answer is safe. |