Skip to main content
Glama

bucket_policy_set

Destructive

Replace a bucket's access policy with a validated JSON policy, ensuring principal IDs use Wasabi accounts and requiring explicit confirmation before applying changes.

Instructions

Replace a bucket's policy with policy (a dict or JSON string, validated first). Account and canonical IDs in principals must be Wasabi's, not AWS's. 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>",
      "policy": "<policy>"
    },
    "name": "bucket_policy_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
bucketYes
policyYes
regionNo
confirmNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=true, openWorld=true, and the description is consistent with them while adding real value: it discloses that the existing policy is entirely replaced, that the payload is validated before being applied, and that principal IDs must be Wasabi's rather than AWS's. It stops short of saying whether a rejected validation leaves the old policy intact or what errors surface, which keeps it below a 5.

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?

Three short sentences, each carrying a distinct fact: what is replaced, a format/cross-cloud constraint, and a required flag. The most critical constraint (full replacement) is front-loaded and there is no filler.

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?

Return values need not be explained because an output schema exists, and the destructive/write profile is covered by annotations and reinforced by the text. What remains thin is the unmentioned region parameter and the absence of any note on validation failure or eventual consistency, minor gaps for a tool of this 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?

With 0% schema description coverage across four parameters, the description must carry the load; it clarifies that 'policy' accepts a dict or JSON string and is validated first, and that 'confirm' must be true. 'bucket' is self-evident, but 'region' is never mentioned and there is no guidance on principal/action structure beyond the ID caveat, so a third of the parameter surface remains undocumented.

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?

The description leads with a specific verb and resource: 'Replace a bucket's policy with policy'. The word 'Replace' also pins down the semantics (full overwrite, not merge), which cleanly separates it from bucket_policy_get, bucket_policy_delete, and any attribute-specific sibling such as bucket_acl_set.

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?

It states one hard precondition, 'Needs confirm=true', which is exactly the kind of gating an agent must know before calling a destructive write. However, it never says when to prefer this over bucket_policy_delete or bucket_policy_get, nor what to do if the policy needs partial modification, so usage context is implied rather than spelled out.

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