Skip to main content
Glama

rds__AddPostgresqlHbaConf

Overwrites the PostgreSQL pg_hba.conf file on an RDS instance with supplied configuration, or applies default settings when no configuration is provided.

Instructions

[RDS] 以传入配置全量覆盖当前pg_hba.conf文件内容,入参为空时用默认配置覆盖当前文件内容

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

Input Schema

NameRequiredDescriptionDefault
project_idYes项目id
instance_idYes实例id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full load, and it does disclose the key destructive trait: existing file content is entirely replaced, and empty input resets to defaults. That is real value, but it omits the risk profile an operator needs: permission requirements, whether the change is immediately effective or needs a restart, and whether the old content is recoverable.

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

Conciseness5/5

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

One compact sentence with the destructive semantics front-loaded ahead of the empty-input fallback; no filler and nothing repeated from structured fields.

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 destructive, whole-file replacement with no annotations and no output schema, the definition covers the essential destruction semantics but not the format of the accepted configuration, the required authorization, or the effect on live connections. It is adequate to know what the tool does, not enough to know how to use it 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%, so both path parameters (project_id, instance_id) are already documented in the schema, giving a baseline of 3. The description's note about empty input behavior adds a little meaning, but it also refers to '传入配置' (the passed configuration) even though the schema exposes no configuration parameter, so it does not clarify where that payload comes from.

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 names a specific verb (全量覆盖/full overwrite) and a specific resource (pg_hba.conf), which clearly distinguishes it from the Modify/Delete siblings listed. An agent can tell this is a whole-file replacement rather than an incremental edit without opening any schema.

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?

Usage is only implied by the phrase 全量覆盖 — it is for wholesale replacement rather than modification — but the description never says when to choose this over rds__ModifyPostgresqlHbaConf or rds__DeletePostgresqlHbaConf, nor does it state preconditions. The reader must infer the selection rule from the sibling name.

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