Skip to main content
Glama

rds__ModifyPostgresqlHbaConf

Modify or add PostgreSQL pg_hba.conf rules on an RDS instance by priority, updating existing entries and creating new ones to control database access.

Instructions

[RDS] 修改/新增pg_hba.conf文件的单个或多个配置,以priority做唯一标识,priority不存在的新增,存在的修改

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__ModifyPostgresqlHbaConf"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目id
instance_idYes实例id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/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 disclosure. It does disclose genuine behavior beyond the name: it supports single or multiple entries, uses priority as the unique key, and upserts. It says nothing, however, about required permissions, whether changes are irreversible or need a reload, or what happens on conflicting priorities.

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?

It is a single compact sentence with the resource and the upsert rule front-loaded and no filler. It is efficient, though its density comes at the cost of omitting operational details.

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 mutation tool with no annotations and no output schema, the description should cover permissions, effect scope, and the shape of the payload. It covers the upsert logic, but it references parameters absent from the schema, leaving an agent unable to construct a valid call from the definition alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema documents both parameters at 100% coverage, so the baseline is 3, but the description centers on a 'priority' identifier and configuration content that the input schema does not expose at all. An agent reading the description would expect to pass priority and config fields, but the schema only accepts project_id and instance_id. The description therefore actively misaligns with the schema rather than adding meaning to it.

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 pair (修改/新增, modify/add) and a specific resource (pg_hba.conf configuration entries), and it explains the upsert rule keyed on 'priority'. It is clear what the tool does, but it does not distinguish itself from the sibling rds__AddPostgresqlHbaConf, even though both can add entries.

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?

The upsert semantics ('priority不存在的新增,存在的修改') imply when this tool is appropriate instead of a pure add or modify call, but the description never states when to use it instead of rds__AddPostgresqlHbaConf or rds__DeletePostgresqlHbaConf. The usage guidance is therefore inferable rather than explicit.

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