Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Query Upstream Relation

query_upstream_relation

Retrieves upstream workflow task relationships by project and task code, enabling dependency analysis and tracing what feeds into a task before troubleshooting or modifying a workflow.

Instructions

查询上游工作流任务关系

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>",
      "taskCode": "<taskCode>"
    },
    "name": "query_upstream_relation"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskCodeYes任务编码
projectCodeYes项目Code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden but only restates that this is a query. It does not say whether the call is read-only, what the result set looks like (a list of upstream tasks? a graph?), how deep the upstream traversal goes, or what happens when no upstream exists.

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?

A single short sentence, front-loaded with the verb and resource, with zero redundant wording. It is efficient but so terse that the brevity starts to bleed into under-specification rather than crispness.

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?

No output schema, no annotations, and no return-value description mean an agent cannot predict the shape or depth of the response. For a relation-traversal tool this leaves significant gaps that the description should have filled.

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 coverage is 100%, so both parameters (taskCode, projectCode) are already documented in the schema, and the description adds no extra meaning such as whether codes come from the current project or another workspace. Baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb (查询/query) plus a specific resource (上游工作流任务关系 / upstream workflow task relation), which is enough to separate it from query_downstream_relation by direction alone. It stops short of clarifying what a 'relation' actually is (task-to-task dependency vs. task-to-process binding), which matters given siblings like create_process_task_relation.

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, no mention of prerequisites such as needing the code from a prior lookup, and no explicit routing to query_downstream_relation when the agent actually wants the opposite direction. The direction word is the only implicit signal.

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