Skip to main content
Glama

object_get_text

Read-only

Read a text object as UTF-8 up to a byte limit, truncating larger files and refusing binary objects.

Instructions

Read a text object as UTF-8, up to max_bytes (default 256 KiB, at most 1 MiB). Larger objects are truncated and the result says so; binary objects are refused. Use presign_get for large or binary downloads.

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

Input Schema

NameRequiredDescriptionDefault
keyYes
bucketYes
regionNo
max_bytesNo
version_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context beyond them: truncation of oversized objects, an explicit signal in the result when truncation occurs, refusal of binary content, and a hard 1 MiB ceiling. It stops short of noting permission requirements or error modes, so it is strong but not exhaustive.

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?

Three short sentences, front-loaded with the core action and its limit, then failure behavior, then the alternative. No sentence is redundant and nothing important is buried.

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?

An output schema exists, so return-value detail is rightly omitted, and the description still flags the truncation indicator in the result. The main remaining gap is undefined semantics for region and version_id on a read operation.

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 carries the burden for five parameters. It well documents max_bytes (default 256 KiB, cap 1 MiB), but bucket, key, region and version_id get no semantic treatment at all, leaving half the surface to convention.

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 ('Read a text object as UTF-8') plus the scope limit (up to max_bytes) and the refusal condition for binary objects. An agent can immediately tell this apart from presign_get, which the description names as the alternative.

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?

Explicitly routes large or binary downloads to presign_get, and states that binary objects are refused here. Both the when-to-use and when-not-to-use conditions are given rather than inferred.

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