Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Write Copy Process Definition

write_copy_process_definition

Copies workflow process definitions by code from one DolphinScheduler project to another, enabling reuse or migration of workflows across projects.

Instructions

batchCopyByCodes

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": {
      "projectCode": "<projectCode>",
      "codes": "<codes>",
      "targetProjectCode": "<targetProjectCode>"
    },
    "name": "write_copy_process_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
codesYesPROCESS_DEFINITION_CODES
projectCodeYes路径参数 projectCode
targetProjectCodeYesTARGET_PROJECT_CODE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

D1.5/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses nothing. It does not say whether the copy overwrites existing definitions in the target project, whether versions and variables travel with the definition, what permissions or pre-existing target project state are required, or whether the operation is reversible or atomic.

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

Conciseness2/5

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

A single camelCase token is minimal in length but is under-specification rather than conciseness. There is no front-loaded statement of action, no scope, and no structure an agent can act on.

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

Completeness1/5

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

This is a mutating batch tool with three required parameters, no annotations, no output schema, and cryptic parameter descriptions, so the description must carry the load and instead says nothing. An agent cannot determine what the call will change in the target project or how to interpret a result.

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

Parameters2/5

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

Schema coverage is nominally 100%, which sets a baseline of 3, but the schema 'descriptions' are placeholder tokens ('PROCESS_DEFINITION_CODES', 'TARGET_PROJECT_CODE', '路径参数 projectCode') that add no meaning, and the description adds none either. It also fails to clarify the suspicious type mismatch where projectCode is a string but targetProjectCode is an integer, or whether 'codes' is one code or a delimited list.

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

Purpose2/5

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

The description is the raw identifier 'batchCopyByCodes', which merely restates the tool name/title in camelCase without adding a verb-plus-resource statement. It hints that a batch copy keyed by codes occurs, but never says what is copied (process definitions, versions, variables) or into what, so it does not distinguish this tool from siblings such as write_batch_export_process_definition_by_codes or write_move_process_definition.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. An agent must guess whether this copies definitions between projects, duplicates them within a project, or replaces existing definitions. Nothing in the text routes the agent away from export/move/import siblings.

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

Deploy Server

Other Tools