Skip to main content
Glama

rds__SetAuditlogPolicy

Set or update an RDS instance's audit log policy, including retention days and audited operation types; use a retention value of 0 to disable auditing.

Instructions

[RDS] 设置审计日志策略。

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

Input Schema

NameRequiredDescriptionDefault
keep_daysYes审计日志保存天数,取值范围0~732。0表示关闭审计日志策略。
project_idYes项目ID。
audit_typesNo审计记录的操作类型,动态范围。空表示不过滤任何操作类型。
instance_idYes实例ID。
reserve_auditlogsNo仅关闭审计日志策略时有效。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are supplied, so the description bears the full burden of behavioral disclosure, and it discloses nothing. For a mutation that can disable auditing (keep_days=0), an agent is not told that this changes instance security posture, whether the change is reversible, or what permissions are required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no padding, but the brevity is under-specification rather than efficiency — there is no front-loaded scope, no behavior, and no routing information for the agent to act on.

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

Completeness1/5

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

A five-parameter destructive policy mutation with no annotations and no output schema needs substantially more: what is changed, whether disabling is reversible, and how to confirm the resulting policy. None of that is present, so the definition is inadequate for the tool's complexity.

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%, including the important keep_days=0 semantics and the reserve_auditlogs constraint, so the schema already does the parameter work. The description adds no meaning beyond it, which is the baseline 3 case when the schema is complete.

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

Purpose2/5

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

"[RDS] 设置审计日志策略。" restates the tool name (SetAuditlogPolicy) in Chinese with no added specificity. It does signal the resource domain (RDS audit log policy) and that the operation is a set/configure action, but an agent learns nothing beyond what the name already says, and there is no differentiation from siblings such as rds__SetBackupPolicy or rds__SetBinlogClearPolicy.

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 when-to-use guidance, no precondition, and no mention of the read-side counterpart rds__ShowAuditlogPolicy for verifying current state. Usage can only be inferred from the verb "设置"; nothing tells the agent when this tool is the right choice versus other policy-setting siblings.

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