Skip to main content
Glama
timeweb-s3-mcp-ai-cli

timeweb-s3-mcp-ai-cli

s3_largest_objects

Rank objects by size under a bucket prefix to find what consumes storage; scan a limited number of keys, return sorted results, and resume partial scans with a continuation token.

Instructions

Find the largest objects under a prefix by scanning up to max_scan keys (default 10000); read-only. Use it to locate what consumes space; use s3_prefix_usage for totals per sub-prefix and s3_list_objects for plain browsing. Returns objects[] sorted by size descending (at most limit, default 10), scanned, partial and continuation_token. partial:true means the scan stopped early and the ranking covers only scanned keys; pass continuation_token to rank the next batch.

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": "s3_largest_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of largest objects to return, 1-1000; default 10.
bucketYesBucket name, e.g. "backups". Must be inside the configured bucket scope.
prefixNoKey prefix that limits the results, e.g. "daily/"; omit for the whole bucket. End it with "/" to match one folder only. In a prefix-restricted scope it must start with an allowed prefix followed by "/".
max_scanNoMaximum number of object keys to scan in this call; default 10000. Higher values give more complete results but take longer.
continuation_tokenNocontinuation_token from a previous partial result to scan the next batch of keys; omit to start at the beginning of prefix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.1
    • addedInput schema / properties / bucket / description
      Added value: +"Bucket name, e.g. \"backups\". Must be inside the configured bucket scope."
    • addedInput schema / properties / continuation_token / description
      Added value: +"continuation_token from a previous partial result to scan the next batch of keys; omit to start at the beginning of prefix."
    • addedInput schema / properties / limit / description
      Added value: +"Number of largest objects to return, 1-1000; default 10."
    • addedInput schema / properties / max_scan / description
      Added value: +"Maximum number of object keys to scan in this call; default 10000. Higher values give more complete results but take longer."
    • addedInput schema / properties / prefix / description
      Added value: +"Key prefix that limits the results, e.g. \"daily/\"; omit for the whole bucket. End it with \"/\" to match one folder only. In a prefix-restricted scope it must start with an allowed prefix followed by \"/\"."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does so well: it declares read-only behavior, discloses that the scan is capped (so results may be incomplete), and explains that partial:true means the ranking covers only scanned keys with continuation_token needed for the next batch. It stops short of permissions/auth requirements or cost/latency implications of large max_scan values.

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 purpose, then alternatives, then return shape and the partial/continuation mechanics – a logical order with no filler sentences. The return-field enumeration is somewhat densely packed into one run-on clause, which slightly hurts scannability but every element is load-bearing.

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

Completeness5/5

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

For a 5-parameter tool with no annotations and no output schema, the description supplies everything an agent needs: what it returns (objects[] sorted descending, plus scanned/partial/continuation_token), how to interpret partial, and how to continue. The return-value explanation compensates for the absent output 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?

Schema coverage is already 100%, so the baseline is 3; the description earns more by explaining the interplay between parameters rather than restating them – that max_scan bounds scan completeness, that limit caps the ranked output, and that continuation_token resumes from a prior partial result. It adds relational meaning the per-field schema text does not capture.

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?

States a specific verb and resource ('find the largest objects under a prefix') plus the mechanism ('scanning up to max_scan keys') and explicitly marks it read-only. It is distinguishable at a glance from s3_prefix_usage (totals) and s3_list_objects (browsing).

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?

Gives an explicit use case ('use it to locate what consumes space') and names two alternatives with the condition that selects each: s3_prefix_usage for totals per sub-prefix, s3_list_objects for plain browsing. The when-to-use and when-not-to-use routing is complete.

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