Skip to main content
Glama

bucket_cors_set

Replace a bucket's CORS rules to control cross-origin access by setting allowed origins, methods, headers, expose headers, and cache age for each rule.

Instructions

Replace a bucket's CORS rules. Each rule takes allowed_origins and allowed_methods (GET, PUT, POST, DELETE, HEAD), and optionally allowed_headers, expose_headers, max_age_seconds and id. Returns the rules set.

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

Input Schema

NameRequiredDescriptionDefault
rulesYes
bucketYes
regionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the write nature is already known. The description adds real value beyond them: it makes clear existing rules are replaced wholesale, enumerates the accepted HTTP methods, and states the tool returns the rules that were set. It does not mention required permissions or behavior when the bucket does not exist.

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?

Two sentences, front-loaded with the operation and then the field semantics. Every clause conveys information an agent needs to construct a valid call, with 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?

With an output schema present, the return value need not be explained in depth, and the description still notes it returns the rules set. Given three parameters and zero schema descriptions, the coverage of the rules structure is good; the main omission is any hint about the region parameter and preconditions such as bucket existence.

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?

Schema description coverage is 0%, and the rule object is a bare additionalProperties object in the schema, so the description carries the burden and does it well by naming allowed_origins, allowed_methods (with its permitted values), allowed_headers, expose_headers, max_age_seconds and id. The bucket and region parameters get no explanation at all, and region in particular is undocumented in both places.

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?

States a specific verb and resource: 'Replace a bucket's CORS rules', and 'Replace' signals a full-overwrite semantic that separates it from bucket_cors_get and bucket_cors_delete. It stops short of naming siblings, but the operation is unambiguous.

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?

No explicit when-to-use or when-not-to-use guidance and no named alternatives. The word 'Replace' does implicitly tell the agent this is a full overwrite rather than an append or patch, which is a meaningful usage constraint, but it is the only one given.

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