Skip to main content
Glama

bucket_policy_get

Read-only

Retrieves a bucket's policy document as JSON and indicates when no policy is configured.

Instructions

Show a bucket's policy document as JSON, or {"configured": false} when the bucket has no policy.

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

Input Schema

NameRequiredDescriptionDefault
bucketYes
regionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral information beyond that: the response is JSON, and when no policy exists the tool returns {"configured": false} rather than erroring — an edge case an agent would otherwise have to discover by trial.

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 sentence that front-loads the main action and follows with the exceptional return case. No filler, no repetition of the tool name.

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?

For a simple two-parameter read tool with an output schema and full annotation coverage, the description supplies purpose plus the one non-obvious response case. The residual gap is the unexplained `region` parameter and the absence of any error/permission context, which keeps it below 5.

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?

Schema description coverage is 0% for two parameters. The description never addresses the `region` parameter, whose null default and fallback behavior are entirely undefined in both schema and description; only the obvious `bucket` parameter is implicitly explained by the noun in the sentence.

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?

"Show a bucket's policy document as JSON" gives a specific verb (show/read) and resource (bucket policy document), which cleanly separates it from bucket_policy_set and bucket_policy_delete. It stops short of explicitly naming those siblings as alternatives, so it lands at 4 rather than 5.

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 read-only nature and the empty-policy return value imply when to call it, but there is no explicit guidance on when to prefer bucket_acl_get or bucket_get instead, and no mention of prerequisites such as the IAM permissions required to read a policy.

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