Skip to main content
Glama
GreptimeDB MCP Server

GreptimeDB MCP Server

Official
by GreptimeTeam

create_dashboard

Create or update a Perses dashboard definition in GreptimeDB, overwriting any existing dashboard with the same name when write mode is enabled.

Instructions

Create or update a Perses dashboard definition in GreptimeDB.

Overwrites any dashboard already stored under this name. Refused unless the server runs with write mode enabled.

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": {
      "name": "<name>",
      "definition": "<definition>"
    },
    "name": "create_dashboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the dashboard
definitionYesPerses dashboard definition in JSON format

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.2
    • addedInput schema / properties / definition / description
      Added value: +"Perses dashboard definition in JSON format"
    • addedInput schema / properties / name / description
      Added value: +"Name of the dashboard"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "create_dashboardOutput",
      -  "type": "object"
      -}New value: +null
  2. Addedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden and does disclose the most important trait: existing content under the same name is overwritten, and calls are rejected without write mode. It omits secondary behavior such as what happens with malformed JSON or what the response contains, so it is strong but not complete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, zero filler, with the destructive overwrite warning front-loaded immediately after the purpose statement. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no annotations and no output schema, the definition covers purpose, destructive side effect, and the write-mode gate. Only the return behavior and failure modes on invalid definitions are left unstated, which is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for both parameters, so the schema already explains name and JSON definition. The description adds one meaningful nuance by implying 'name' is the overwrite key, but nothing about JSON structure or validation beyond what the schema states. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Create or update a Perses dashboard definition') plus the target system (GreptimeDB), and the verb itself separates it from list_dashboards and delete_dashboard. It never explicitly names or contrasts with a sibling tool, so it stops short of full differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a real precondition ('Refused unless the server runs with write mode enabled') and clarifies the upsert semantics, which is useful when-to-use context. It gives no guidance on when to pick this over alternatives (e.g. delete_dashboard, list_dashboards) or what to do when the write-mode check fails.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.