Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Query Task Log Global

query_task_log_global

Retrieve execution logs for any task instance by ID, with pagination controls to skip lines and set the number of lines read.

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": {
      "taskInstanceId": "<taskInstanceId>",
      "skipLineNum": "<skipLineNum>",
      "limit": "<limit>"
    },
    "name": "query_task_log_global"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes读取的行数
skipLineNumYes跳过的行数
taskInstanceIdYes任务实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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. It implies a read-only query but says nothing about permissions required for cross-project access, how lines are ordered, whether results are paginated by line offset, or what happens when the requested range exceeds the log length — all relevant given the skipLineNum/limit pair.

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 sentence with zero filler and the scope qualifier front-loaded. It is efficient, though arguably undersized for a tool whose behavior is not otherwise documented anywhere.

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?

The tool is simple (3 required scalar params, full schema coverage, no output schema, no annotations), so the schema does most of the work. Still, the description omits the line-offset pagination semantics and any note about cross-project access scope that an agent would need to call it correctly.

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 three parameters (taskInstanceId, skipLineNum, limit) are already documented in the schema. The description adds no additional meaning about the parameters — notably it does not clarify that skipLineNum/limit operate on log lines rather than pages — so the baseline of 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 states a specific verb and resource ('查询任务实例执行日志' — query task instance execution logs) and adds the scoping qualifier '不限项目' (not limited to a project), which implicitly separates it from the non-global 'query_task_log' sibling. It is clear what the tool does, though it never explicitly names or contrasts the sibling tools.

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?

The parenthetical '(不限项目)' implies when to prefer this over a project-scoped log query, but there is no explicit when-to-use statement, no mention of the 'download_task_log_global' alternative, and no guidance on choosing between querying and downloading logs. Usage is left to inference.

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