Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Get Task Instance State Count

get_task_instance_state_count

Counts task instances by state with optional project and time-range filters, enabling monitoring of workflow execution status and identification of 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_task_instance_state_count"
  }
}

Input Schema

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

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 burden of behavioral disclosure. It does not say whether the operation is read-only, whether zero-count states are included in the result, whether deleted or cancelled instances are counted, or what aggregation shape is returned — all material for a counting tool.

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 compact sentence with the resource and grouping dimension front-loaded, followed by the filter options. Nothing is redundant, though the extreme brevity leaves important behavior unstated.

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 no output schema and no annotations, the description must imply the return value; 'counts per state' does convey that, which is the main thing an agent needs. However, it omits date format, default time window when filters are null (all three parameters are optional), and result shape, so it is only minimally adequate for a tool whose parameters are all optional.

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% (each of startDate, endDate and projectCode has its own description), so the baseline is 3. The description restates that filtering is by project and time range but adds no format, timezone, or inclusive/exclusive boundary semantics 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+resource: aggregate counts of task instances grouped by state, with project and time-range filtering. It is distinguishable from siblings such as get_workflow_instance_state_count because the object being counted (task instances) is explicit, though it never names those siblings directly.

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 or when-not-to-use guidance and never points to an alternative such as query_task_instance_list for retrieving actual records rather than aggregate counts. The agent must infer that this is a statistics-only tool from the wording 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