Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Query Sub Process Instance By Task

query_sub_process_instance_by_task

Retrieves sub-process instances associated with a specific task instance and task definition in a project, helping trace nested workflow execution and dependencies.

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

Input Schema

NameRequiredDescriptionDefault
taskIdYes任务实例ID
taskCodeYes任务定义编码
projectCodeYes项目编码

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?

No annotations are provided, so the description carries the full behavioral burden and delivers almost nothing: it does not confirm read-only semantics explicitly, describe the returned fields, say whether one or many instances come back, or address pagination on a list-style query. The only implicit signal is the word "查询" suggesting a read, which is thin for a tool with zero annotation coverage.

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 phrase with zero waste and the filter condition front-loaded. It is not padded, though it is arguably undersized for a three-required-parameter tool rather than genuinely tight.

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

Completeness3/5

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

With full schema coverage but no annotations and no output schema, the description should at minimum explain what a sub-process instance is in relation to the queried task and what comes back. It omits both, leaving a reader to infer the return shape, though the fully documented parameters prevent this from being a blocking gap.

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% (taskId, taskCode, projectCode all documented in Chinese), so the schema already carries parameter meaning and the baseline of 3 applies. The description's "按任务" hints that the task parameters act as the filter, but it adds no format, relationship (taskId vs taskCode) or scoping detail beyond the schema.

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?

"按任务查询子流程实例" states a specific verb (query) and a specific resource (sub-process instance) plus the filter dimension (by task), which lets an agent distinguish it from siblings like query_parent_instance_by_sub or query_process_instance_by_id. It stops short of explicitly naming or contrasting those siblings, so it is clear but not fully differentiated.

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 when-to-use context, no exclusions, and no mention of the obvious alternatives (query_parent_instance_by_sub for the inverse lookup, query_process_instance_by_id for lookup by instance ID). The agent must infer the selection rule 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