Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Query Parent Instance By Sub

query_parent_instance_by_sub

Retrieve the parent process instance for a specified sub-process instance ID and project code to trace nested workflow executions.

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>",
      "subId": "<subId>"
    },
    "name": "query_parent_instance_by_sub"
  }
}

Input Schema

NameRequiredDescriptionDefault
subIdYes子流程实例ID
projectCodeYes项目编码

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 provides essentially nothing beyond the bare purpose: no return shape, no error or not-found behavior, no permission or scope constraints, and no note that this is a read-only lookup.

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?

It is a single short sentence with no wasted words, and the key idea is front-loaded. It is not padded, though it is terse to the point of being under-specified.

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?

For a simple two-parameter read tool with no output schema and no annotations, the description should at least sketch the returned parent-instance payload or behavior on missing matches. Neither is present, so the definition does not give the agent enough information to use it confidently.

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 both subId and projectCode documented in the schema, so the baseline of 3 applies. The description adds no meaning beyond the schema: it only restates that the lookup key is a sub-process instance id.

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 names a specific verb (query) and a specific resource (parent process instance) along with the lookup key (sub-process instance), which matches the required subId/projectCode parameters. It is clearly distinct from inverse-direction siblings such as query_sub_process_instance_by_task, though it does not name any sibling explicitly.

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?

The description gives no guidance on when to use it versus alternatives; it does not mention query_sub_process_instance_by_task or query_process_instance_by_id. The only usage guidance is implicit in the phrase 'by sub-process instance', so an agent must infer the rest from the name alone.

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