Skip to main content
Glama

zentao_config

Read and update local ZenTao autofix settings, including ZenTao connection, product-to-repository mappings, and repair policies, so agents can fix assigned defects with the right repository context.

Instructions

读取/修改本机禅道自动修复配置:禅道地址与账号、产品→代码仓库字典、修复策略。action=show 看当前配置(密码打码);action=set 改禅道连接或策略;action=add_repo 加一条「所属产品→仓库」映射;action=remove_repo 删一条;action=init 生成默认配置文件。

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": {
      "action": "<action>"
    },
    "name": "zentao_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoadd_repo:仓库说明(可选)
actionYes要做什么
branchNoadd_repo:期望分支(可选)
policyNo策略覆盖,如 {"skipDataChanges":true,"maxBugsPerRun":5,"writeBack":false}
accountNo禅道登录账号
baseUrlNo禅道地址,如 https://iip.sgai.com.cn/zentao
productNoadd_repo/remove_repo:禅道里的「所属产品」名(支持包含匹配)
insecureNo内网自签证书时置 true,关闭 HTTPS 校验
passwordNo禅道登录密码(只写本机 config.json)
readonlyNotrue=只读校验,不写回禅道(默认 true)
repoPathNoadd_repo:本地代码仓库绝对路径
testCommandNoadd_repo:修复后跑什么验证(可选,如 npm test)
sessionCookieNo没有密码时用:浏览器 F12 → Application → Cookies 里复制 zentaosid 的值粘进来(只填值或整行 name=value; … 都行)。留空字符串清除。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does add real behavioral detail beyond the schema: show masks the password, the password is only written to the local config.json, and init generates a default config file. It still omits overwrite/merge semantics for 'set', whether remove_repo is destructive or reversible, and where the config file lives, so it is not fully transparent for a mutation 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?

The description is a single front-loaded sentence that opens with the resource and then enumerates actions in the same order as the enum, which is efficient for a 5-action, 13-parameter tool. It is slightly dense/run-on and relies on semicolons, but no sentence is wasted.

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?

There is no output schema and no annotations, so the description must cover behavior; it does cover all action modes plus password masking and the local-only write. Gaps remain for a tool of this complexity: the policy object's keys are only shown by example in the schema, and the description never says what show returns or what happens to existing config on init/set.

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, but the description earns an extra point by mapping parameters to actions — the agent learns that product/repoPath/branch/testCommand/notes belong to add_repo, remove_repo, while account/password/baseUrl/policy belong to set. That action→parameter routing is genuinely useful across 13 parameters and is not something the flat schema conveys.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (the local Zentao auto-fix configuration file: Zentao address/account, product→repo dictionary, fix policy) and a specific verb (read/modify), then decomposes all five actions with one clause each. An agent can tell this apart from the sibling zentao_bug / zentao_login tools purely from the text, since those act on remote Zentao entities while this acts on local config.

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?

Each action is given an explicit purpose ('action=show 看当前配置', 'action=set 改禅道连接或策略', 'action=add_repo 加一条映射', etc.), which effectively tells the agent which mode to pick for which intent. There are no explicit exclusions or 'use X instead' pointers, and nothing says whether 'set' merges with or replaces existing values, so it stops short of a 5.

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