Skip to main content
Glama
GreptimeDB MCP Server

GreptimeDB MCP Server

Official
by GreptimeTeam

dryrun_pipeline

Validates a pipeline against sample JSON/NDJSON data without writing to the database, so you can verify inline YAML or a saved pipeline before use.

Instructions

Test a pipeline with sample data without writing to the database.

You can test a pipeline in two ways:
- Provide 'pipeline' with inline YAML configuration
- Provide 'pipeline_name' to test a previously saved pipeline

Args:
    pipeline: Pipeline YAML configuration (inline)
    pipeline_name: Name of saved pipeline (mutually exclusive with pipeline)
    data: Test data in JSON/NDJSON format
    data_type: Optional content type (e.g., 'application/x-ndjson')

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": {
      "data": "<data>"
    },
    "name": "dryrun_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesTest data in JSON or NDJSON format (single object or array)
pipelineNoPipeline configuration in YAML format (inline). Provide this to test a pipeline without saving it.
data_typeNoContent type of the data (e.g., 'application/x-ndjson'). If omitted, GreptimeDB will use default.
pipeline_nameNoName of the saved pipeline to test. Provide either 'pipeline' or 'pipeline_name', not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.6.2
    • removedInput schema / properties / data / default
      Removed value: -""
    • addedInput schema / properties / data / description
      Added value: +"Test data in JSON or NDJSON format (single object or array)"
    • addedInput schema / properties / data_type / description
      Added value: +"Content type of the data (e.g., 'application/x-ndjson'). If omitted, GreptimeDB will use default."
    • addedInput schema / properties / pipeline / description
      Added value: +"Pipeline configuration in YAML format (inline). Provide this to test a pipeline without saving it."
    • addedInput schema / properties / pipeline_name / description
      Added value: +"Name of the saved pipeline to test. Provide either 'pipeline' or 'pipeline_name', not both."
    • addedInput schema / required
      Added value: +[
      +  "data"
      +]
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "dryrun_pipelineOutput",
      -  "type": "object"
      -}New value: +null
  2. Addedv0.5.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and delivers the single most important behavioral fact: nothing is persisted to the database. The mutual-exclusivity constraint on the two pipeline sources is also disclosed. It does not say what a dry run reports on failure (schema mismatch, malformed NDJSON) or whether any rows are returned, which leaves a real behavioral gap.

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

Conciseness4/5

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

The opening sentence front-loads the purpose and the non-write guarantee, and the two-mode list is a readable structure. The trailing Args block duplicates the schema's own field descriptions and could be dropped without loss.

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 4-parameter tool with no annotations and no output schema, the description covers purpose, both invocation modes, and the exclusivity rule adequately. It omits what the dry-run response actually contains and whether a nonexistent 'pipeline_name' errors, which are the remaining gaps.

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%, so every parameter is already documented in the input schema; the description's Args block largely restates those same descriptions. The only marginal addition is the mutually-exclusive framing, which the 'pipeline_name' schema text already states. Baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('Test a pipeline') plus the defining scope constraint ('with sample data without writing to the database'), which cleanly separates it from create_pipeline and delete_pipeline. An agent can tell what this does without opening the schema.

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

Usage Guidelines4/5

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

Explicitly lays out the two supported invocation modes (inline 'pipeline' YAML vs 'pipeline_name' for a saved pipeline) and flags them as mutually exclusive, which is real when-to-use guidance. It stops short of naming sibling alternatives such as create_pipeline or list_pipelines for the case where the pipeline does not yet exist.

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