Skip to main content
Glama

rds__SetBinlogClearPolicy

Configure local binlog retention for a specified RDS instance by setting the retention period in hours (0–168).

Instructions

[RDS] 修改指定实例的binlog本地保留时长。

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": {
      "binlog_retention_hours": "<binlog_retention_hours>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "rds__SetBinlogClearPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
instance_idYes实例ID。
binlog_retention_hoursYes取值范围0-7*24

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does almost nothing with it. It never says that shortening retention may purge existing binlog files, whether the change is immediate, what permissions are required, or whether it is reversible — all critical for a destructive-capable policy mutation.

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 with a bracketed service tag and no filler. It is efficient, though its brevity reflects under-specification rather than deliberate density.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a no-annotation mutation tool with no output schema, the definition is too thin: nothing about side effects on stored binlogs, effective timing, or error conditions. The schema covers the inputs, but the agent lacks the operational context needed to invoke this safely.

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 the schema already documents project_id, instance_id, and the binlog_retention_hours range (0–7*24 with an example). The description adds no meaning beyond that, so the baseline 3 applies.

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 (修改/modify) and resource (binlog local retention duration for a specified instance), which distinguishes it from the read-only sibling rds__ShowBinlogClearPolicy. It is clear what the tool changes, though it does not explicitly name that sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus the ShowBinlogClearPolicy counterpart, no prerequisites, and no mention of consequences. The agent must infer that this is the write-side companion to a read-only policy query.

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