Skip to main content
Glama

drs__UpdateComparePolicy

Configure the periodic comparison schedule for a DRS task, setting the switch, cycle, time window, interval, and comparison types to control when data consistency checks run.

Instructions

[DRS] 修改周期性对比的对比策略,目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MySQL->GaussDB(DWS)、GaussDB(for MySQL)->MySQL同步任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)迁移任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)、GaussDB(for MySQL)->GaussDB(for MySQL)、DDM->DDM、DDS-DDS灾备任务支持对比策略设置。

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>",
      "job_id": "<job_id>",
      "project_id": "<project_id>"
    },
    "name": "drs__UpdateComparePolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes对比策略开关-open|close。
job_idYes任务ID。
periodNo对比策略周期。
end_timeNo对比策略生效结束时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:04:00:00,表示UTC时间的04:00:00,北京时间(UTC+08:00)的12:00:00。
begin_timeNo对比策略生效开始时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:00:00:00,表示UTC时间的00:00:00,北京时间(UTC+08:00)的08:00:00。
project_idYes租户在某一Region下的Project ID。
compare_typeNo对比类型列表:
interval_hourNo间隔时间,按小时对比时填写,表示每隔多久执行一次对比,单位是小时。
compare_policyNo对比策略:

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.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 burden of behavioral disclosure. It reveals the tool mutates an existing periodic comparison policy and scopes which job types are eligible, but says nothing about required permissions, whether the change is reversible, what happens to in-flight comparison jobs when the policy changes, or what the call returns.

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 front-loaded sentence that opens with the verb and resource before the applicability list, so the core purpose is visible immediately. The long enumeration is dense but every clause adds scoping information; the bracketed [DRS] prefix is the only marginal text.

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?

For a nine-parameter mutation tool with no annotations and no output schema, the description covers purpose and applicability but omits the effects of the change, prerequisites, and expected response. Adequate to start a call, not enough to call it safely with confidence.

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 the schema already documents all nine parameters, which sets the baseline at 3. The description adds no parameter-level meaning beyond the schema — notably the compare_type and compare_policy schema entries end with a bare colon and give no enumerated values, and the description does not compensate for that vagueness.

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 gives a specific verb (修改 / modify) plus a precise resource (周期性对比的对比策略 / periodic comparison policy), and it enumerates exactly which task types the setting applies to (MySQL->MySQL, MySQL->GaussDB(for MySQL), GaussDB(DWS), DDM->DDM, DDS-DDS disaster recovery, etc.). This distinguishes it from read-only siblings such as drs__ShowComparePolicy, though it never names those siblings explicitly.

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?

Applicability is implied through the long enumeration of supported sync/migration/disaster-recovery task types, which effectively tells an agent when the tool can be used. However, there is no explicit when-not guidance and no mention of the natural alternative (drs__ShowComparePolicy) for merely reading the current policy, so the agent must infer the read-vs-write split from sibling names.

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