Skip to main content
Glama

s3_get_bucket_policy

Retrieves an S3 bucket policy and summarizes anonymous actions and object scope, so you can review public access permissions.

Instructions

Read an S3 bucket policy and summarize its anonymous actions and object scope.

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": {
      "provider": "<provider>",
      "bucket": "<bucket>"
    },
    "name": "s3_get_bucket_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
bucketYesBucket name.
regionNoBucket region. Omit for automatic resolution or a fixed endpoint.
accountNoAccount label of the provider whose object storage to use; omit for that provider's default account.
providerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.35.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does add genuine context by stating the output emphasizes anonymous actions and object scope, but it says nothing about required permissions, behavior when a bucket has no policy attached, or the fact that it works across three different providers.

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?

A single front-loaded sentence with no filler; the action and its output focus come first. Nothing in it is redundant.

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 read-only tool with no output schema and no annotations, the description is adequate but thin. It omits multi-provider scope (despite the provider enum), the no-policy case, and permission requirements, all of which an agent would want before calling.

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 75%, so the schema already explains bucket, region, and account. The description adds no parameter meaning at all, and notably the provider enum (aws/hetzner/ovh) is undocumented in both schema and description. Baseline 3 applies when the schema does the heavy lifting.

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 pairs a specific verb ("Read") with a specific resource ("an S3 bucket policy") and even names what it surfaces (anonymous actions, object scope). This clearly separates it from the write-side sibling s3_set_bucket_policy, though no sibling is named explicitly.

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 prerequisites, and no named alternative. An agent can infer from "Read" that this is the inspection counterpart to s3_set_bucket_policy, but the description itself states nothing about selection criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.