Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Query Top N Longest Running Process Instances

query_top_n_longest_running_process_instances

Retrieve the N process instances with the longest runtimes in a project and time range to identify and analyze slow workflows.

Instructions

查询耗时最长的N个流程实例,用于分析慢流程

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>",
      "size": "<size>",
      "startTime": "<startTime>",
      "endTime": "<endTime>"
    },
    "name": "query_top_n_longest_running_process_instances"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYes返回的实例数量
endTimeYes统计结束时间
startTimeYes统计起始时间
projectCodeYes项目编码

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It states the ranking intent (longest-running, top N) but does not say whether duration is measured only for completed instances or includes still-running ones, whether results are ordered, or whether the startTime/endTime window filters on instance start, end, or both — all material for interpreting the result.

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

Conciseness5/5

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

A single short sentence with the ranking criterion and the analytical purpose front-loaded; no redundant or filler wording.

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

Completeness4/5

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

For a four-parameter read query with no output schema and fully documented params, the description covers what the tool returns at a high level (top N by duration). The remaining gap is the lack of any hint about how the time window interacts with the duration metric.

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%, so all four parameters are already documented in the input schema (size as returned count, startTime/endTime as the statistical window, projectCode as project identifier). The description only implicitly maps 'N' to size and adds no time-window or project-scoping semantics beyond that.

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 plus resource ('查询...流程实例') and adds the defining qualifier '耗时最长' with an N limit, which clearly separates it from sibling list/instance queries such as query_process_instance_list. It does not explicitly name a sibling to contrast with, so it stops short of a 5.

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

Usage Guidelines3/5

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

'用于分析慢流程' implies the scenario (slow-process / bottleneck analysis) but gives no explicit when-to-use versus alternatives such as query_process_instance_list or query_process_instance_gantt. Guidance is only implied from the purpose clause.

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