Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Query Process Definition View Tree

query_process_definition_view_tree

Retrieves the DAG view tree of a workflow definition by project and definition code, returning up to a specified number of nodes for structure and dependency inspection.

Instructions

查询流程定义 DAG 视图树

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>",
      "code": "<code>",
      "limit": "<limit>"
    },
    "name": "query_process_definition_view_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes流程定义编码
limitYes返回节点数量上限
projectCodeYes项目编码

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/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 burden of behavioral disclosure, and it discloses nothing: no permission requirements, no statement about the size or shape of the returned tree, no note on what happens when limit truncates the graph, and no read-only assurance. A single one-line restatement of the name is inadequate for a tool whose output is a structured DAG.

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

Conciseness3/5

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

It is a single short phrase with no wasted words and the key concept is front-loaded, which is good. But the brevity here reflects under-specification rather than disciplined concision — nothing was trimmed because nothing was ever said.

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

Completeness2/5

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

With three required parameters, no annotations, and no output schema, the description needs to explain the returned structure and the effect of limit on the DAG, and it does neither. An agent knows only that it queries something called a view tree, which is not enough to call it correctly or interpret its result.

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%, with code, limit and projectCode each documented inline, so the baseline is 3 regardless of the description. The description adds no extra meaning about how projectCode and code interact or how limit affects tree completeness, so it does not exceed the baseline.

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

Purpose3/5

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

The phrase '查询流程定义 DAG 视图树' names a verb (query) and a resource (process definition DAG view tree), and 'DAG' adds a hint of what kind of structure is returned that the name alone does not convey. However, it is essentially a restatement of the tool name and title, and it never explains what a 'view tree' actually contains or how it differs from sibling queries like query_process_definition_by_code or query_process_definition_versions.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all — no indication of when an agent should prefer this DAG view over the many other process-definition query siblings, and no prerequisites or exclusions. The agent must infer usage purely from the name.

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