Skip to main content
Glama

bucket_replication_set

Destructive

Configure or replace a bucket's replication settings to replicate new objects to a destination bucket, including cross-account roles, rules, and delete-marker replication.

Instructions

Replace a bucket's replication configuration, replicating new objects to destination_bucket. rules ({id, prefix, tags, priority, enabled, delete_marker_replication}) default to the whole bucket. Same account: leave role empty; cross-account: give role (ARN), destination_account and optionally owner_translation. Both buckets must have the same versioning state; existing objects need bucket_replication_backfill. Needs confirm=true.

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": {
      "bucket": "<bucket>",
      "destination_bucket": "<destination_bucket>"
    },
    "name": "bucket_replication_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNo
rulesNo
bucketYes
regionNo
confirmNo
owner_translationNo
destination_bucketYes
destination_regionNo
destination_accountNo
delete_marker_replicationNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the description's job is to add operational detail — and it does: replacement (not merge) semantics, the confirm gate, the versioning-parity prerequisite, and the cross-account auth requirements (role ARN, destination_account, optional owner_translation). This is exactly the auth/prerequisite context that annotations cannot express.

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?

Front-loaded with the action, then parameters, then auth, then prerequisites — a sensible order with no filler sentences. It is dense and clause-heavy (parenthetical field list, colon-delimited conditionals), which slightly hurts scannability but costs no wasted words.

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

Completeness4/5

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

An output schema exists, so return values need not be described, and the high-risk mutation aspects (confirm, prerequisites, cross-account auth) are covered. The only real omissions are the two region parameters, which for a cross-account replication tool are non-trivial and left entirely to the schema.

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

Parameters4/5

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

With 0% schema description coverage, the description carries the full burden and largely succeeds: it enumerates the rules object's fields, explains role's conditional meaning per account topology, flags owner_translation as optional, and states that rules default to whole-bucket replication. Gaps remain for region, destination_region, and the top-level delete_marker_replication parameter, which is mentioned only as a rules sub-field and is therefore ambiguous against the schema.

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

Purpose5/5

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

"Replace a bucket's replication configuration, replicating new objects to destination_bucket" gives a specific verb (replace), a specific resource (bucket replication configuration), and the direction of effect. It also implicitly separates itself from the read/delete siblings and explicitly hands off the existing-object case to bucket_replication_backfill.

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

Usage Guidelines5/5

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

Explicit branching guidance: same-account vs cross-account ("leave role empty" vs "give role (ARN), destination_account"), the precondition that both buckets share a versioning state, the pointer to bucket_replication_backfill for existing objects, and the confirm=true requirement. An agent knows both when to call it and when to call a sibling instead.

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