Skip to main content
Glama

zentao_bug

Fetches a ZenTao defect's details, predicted conclusion, repository snapshot (branch, dirty files, recent commits), and keyword-related file clues to assemble context before code changes.

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

Input Schema

NameRequiredDescriptionDefault
idYes缺陷 ID
maxFilesNo文件线索最多给几条,默认 20

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 does well: it discloses that the response is an aggregate of bug record, an inferred/pre-judged conclusion, live repository state (branch, dirty files, recent commits), and matched file leads — telling the agent this is a read-only context pack rather than a mutation. It does not cover failure modes (unmapped repo, missing bug), auth needs, or cost/latency of the repo scan.

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?

Two tight sentences, with the payload enumerating the tool's content up front and the usage framing last; nothing is redundant. The term '预判结论' is slightly opaque — it is unclear whether this is an LLM-inferred diagnosis or a stored field — which is the only real blemish.

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 multi-source aggregation tool with no output schema and no annotations, the description is nearly complete: it tells the agent what four kinds of data come back and when to reach for it. Remaining gaps are operational (behavior when the bug has no linked repo, or whether the file leads are ranked) rather than structural.

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%, with both id and maxFiles documented in the schema, so the baseline is 3. The description adds only indirect meaning — '关键词相关文件线索' hints that maxFiles bounds the file-lead count — but never states the default or the effect of raising it beyond what the schema already says.

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 uses a concrete verb (看/查看) against a single resource (一条缺陷) and enumerates the composite payload: full bug info, a predicted conclusion, a repo snapshot with branch/dirty-file/recent-commit detail, and keyword-related file hints. That scope ('one bug, plus repo context') implicitly separates it from the plural sibling zentao_bugs, but the description never names that sibling or any other alternative.

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?

It gives a clear usage context with '这是真正动手改代码前的上下文包' — call this before you actually change code, i.e. as pre-edit context gathering. There is no explicit when-not guidance (e.g. use zentao_bugs for listing/triage) and no stated prerequisite that the bug must be mapped to a repository.

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