Skip to main content
Glama

zentao_report

Record a defect fix outcome and return the next agent step: continue to another bug or stop and summarize; optionally write the conclusion back to ZenTao and mark it resolved.

Instructions

回填一条缺陷的修复结果,并告诉智能体下一步(继续下一条 / 停止并汇总)。outcome=fixed 时建议填 rootCause/fix/files/verify;outcome=failed 时填 reason。若配置里 writeBack=true 且非只读,会同时把结论评论回禅道并要求确认是否标记解决。

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": {
      "bugId": "<bugId>",
      "outcome": "<outcome>"
    },
    "name": "zentao_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
fixNo改了什么
bugIdYes缺陷 ID
filesNo改动文件列表
runIdNo轮次 ID(不传用最近一轮)
titleNo缺陷标题(便于汇总可读)
commitNo提交哈希或分支
reasonNo失败/跳过原因
verifyNo怎么验证的(测试/自测步骤/输出摘要)
outcomeYes这条的结果
rootCauseNo根因
writeBackNo是否把结论写回禅道(覆盖配置,需 readonly=false)
resolveBugNo写回时是否同时标记为已解决

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it discloses the key behavioral traits: a conditional side effect that comments the conclusion back to ZenTao, gated on config writeBack=true and readonly=false, plus a confirmation requirement before marking the bug resolved. It also discloses that the return value steers the agent's next action. It does not cover error behavior or whether repeated calls are idempotent.

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?

Three dense sentences that put the action and the next-step contract first, then the per-outcome parameter advice, then the side-effect conditions. Every clause carries information, though the final sentence about writeBack and readonly packs two conditions into one long clause.

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 12-parameter mutation tool with no annotations and no output schema, the description covers purpose, side effects, gating conditions, per-outcome parameter expectations, and the semantic of the response (next-step instruction). Gaps such as failure modes and how runId defaulting works are minor and partly covered by schema property descriptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description goes beyond the schema by mapping outcome values to which optional parameters matter (fixed → rootCause/fix/files/verify, failed → reason), a relationship the flat schema cannot express. It leaves the interaction between writeBack and resolveBug only partly spelled out.

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: it writes back (回填) the repair result of one bug, and additionally returns a next-step directive. That makes the tool distinct in kind from read-oriented siblings like zentao_bugs or zentao_bug. It never names an alternative tool, so the differentiation is implicit rather than explicit.

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?

Usage guidance is conditional on the outcome value (fill rootCause/fix/files/verify when fixed, reason when failed), which tells the agent how to use the tool once it decides to. What is missing is when to call this versus zentao_next or zentao_bug, and any exclusion or prerequisite such as needing a runId or an active login.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.