Skip to main content
Glama

swift_download_object

Download a Swift object from a container, capped by max_bytes to prevent large transfers. Objects exceeding the limit are refused, not truncated; text returns as content, other bytes as base64.

Instructions

Download a Swift object, capped by max_bytes (default 1 MiB, hard max 5 MiB).

Service: Swift (object-store). Read-only. Does not mutate state. Objects larger than max_bytes are refused rather than truncated. Text is returned as content; other bytes are content_base64.

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": {
      "container": "<container>",
      "object_name": "<object_name>"
    },
    "name": "swift_download_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
containerYes
max_bytesNo
object_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 full burden and does substantial work: it declares read-only, states that oversized objects are refused rather than truncated, and explains the content vs content_base64 return split. It omits permission/auth requirements and behavior when the object does not exist, which keeps it short of 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and its cap, then terse scoping lines; nothing is padded. Minor redundancy between 'Read-only' and 'Does not mutate state', which say the same thing twice.

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?

A simple 3-parameter read tool with an output schema, so return-value documentation is not required, and the description still usefully previews the content/content_base64 shape and the refusal-on-oversize behavior. Only missing element for full completeness is error/permission context.

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 0%, so the description should compensate, and it does so only for max_bytes (default 1 MiB, hard max 5 MiB) – genuinely useful beyond the bare 'integer' schema. container and object_name receive no added meaning such as naming rules or format expectations.

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 ('Download a Swift object') plus the governing constraint (max_bytes). It implicitly separates itself from metadata-oriented siblings like swift_get_object_metadata by describing returned content, but never names an alternative explicitly.

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 'Service: Swift (object-store)' line gives context for when this tool applies, and the read-only note signals it is the non-mutating fetch path. There is no explicit when-to-use/when-not guidance versus siblings such as swift_get_object_metadata or the s3 counterparts.

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