Skip to main content
Glama

resolve_bug

Resolve a ZenTao bug by ID with a structured solution covering root cause, fix approach, logic change, and impact. Without these solution fields the resolve request is rejected.

Instructions

Resolve one bug by ID via POST /bugs/{id}/resolve. REQUIREs non-empty solutionModules {rootCause, fixApproach, logicChange, impact} — without it the resolve call will REJECT with an error. Plain comment/solution is no longer accepted. Many instances require resolvedBuild (解决版本); pass it or set ZENTAO_DEFAULT_RESOLVED_BUILD (e.g. trunk). Do NOT use raw HTTP PUT/edit as a resolve substitute — it only flips status without writing solution text.

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": {
      "id": "<id>"
    },
    "name": "resolve_bug"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBug ID
commentNoIGNORED for resolve — only solutionModules is accepted. This field only appends plain text to the action record if solutionModules is also present.
solutionNoIGNORED for resolve — only solutionModules is accepted. This field is kept for backward compatibility only.
assignedToNoRecipient ZenTao account, not display name. Explicit value overrides ZENTAO_DEFAULT_ASSIGNED_TO; otherwise defaults to each Bug creator (openedBy). ZenTao sends @ notification only if this user has configured mobile/notification binding.
resolutionNoDefault fixed
resolvedBuildNo解决版本 (required by many instances). Falls back to ZENTAO_DEFAULT_RESOLVED_BUILD. Common value: trunk
solutionModulesNoREQUIRED — resolve WILL REJECT without it. Structured solution object. Server formats into multi-line text with 【根因】【修复思路】【改动逻辑】【影响范围】. At least one field must be non-empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the hard rejection condition, the backward-compatibility fields that are now ignored, the env-var fallback chain for resolvedBuild, and that raw PUT only flips status without writing solution text. That is exactly the kind of failure-mode context an agent cannot infer from the schema.

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?

Front-loads the action and endpoint, then the hard requirement, then fallbacks and the anti-pattern warning — a sensible priority order with no filler. The all-caps emphasis and duplicated 'REJECT' messaging add slight noise but no wasted sentences.

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 mutation tool with no annotations and no output schema, it covers preconditions, rejection behavior, fallback configuration, and what the server does with the structured object. It omits permission/auth requirements, reversibility of a resolve, and any hint about the response beyond 'server formats into multi-line text'.

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% and each field is richly documented, so the description largely restates the schema's own warnings rather than adding new meaning. The one genuinely useful addition is framing solutionModules as required in practice despite only 'id' appearing in the schema's required list.

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 and resource ('Resolve one bug by ID') plus the exact endpoint (POST /bugs/{id}/resolve), so the operation is unambiguous. It does not explicitly distinguish itself from close_bug, verify_bug, or batch_resolve_my_bugs, which is the only thing keeping it from 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 Guidelines4/5

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

Gives strong positive and negative guidance: solutionModules is mandatory or the call rejects, comment/solution are no longer accepted, resolvedBuild may be required with an env fallback, and raw HTTP PUT/edit must not be used as a substitute. It stops short of naming sibling tools (close_bug, verify_bug) and when to prefer those instead.

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