Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Get Workflow Instance State Count

get_workflow_instance_state_count

Count workflow instances by state, with optional project and time-range filters, to monitor execution status and identify bottlenecks.

Instructions

统计流程实例各状态数量,可按项目和时间范围过滤

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_workflow_instance_state_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateNo统计结束时间
startDateNo统计起始时间
projectCodeNo项目编码

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden. '统计... 数量' implies a read-only aggregation and hints the result is counts per state, but it says nothing about permissions, whether unfiltered calls scan all instances, cost/limits, or what the response shape actually is. That is thin for an unannotated tool.

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, front-loaded with the action and resource followed by the optional filters. Nothing is redundant or padded.

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?

There is no output schema and no annotations, so the description is the only source of behavioral detail. It conveys the aggregation semantics and filters adequately for a simple count tool, but leaves the agent guessing about read-only status, result format, and any scoping defaults.

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% and all three parameters (startDate, endDate, projectCode) are documented in the schema. The description restates the same two filter dimensions and adds nothing beyond that, so the baseline 3 applies.

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 gives a specific verb and resource: counting workflow instance quantities grouped by state, optionally filtered by project and time range. This is distinguishable from the sibling get_task_instance_state_count (task instances, not workflow instances), though the description itself does not name that 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 Guidelines3/5

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

It states the filtering capability (project, time range) which implies when it is appropriate, but gives no explicit when-to-use or when-not guidance and does not point the agent toward or away from alternatives such as the task-instance or queue count tools.

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