Skip to main content
Glama

Read a file

get_object
Read-onlyIdempotent

Read a file's metadata. Use when checking a file's key, size or checksum. Before: a file id from list_objects or commit_upload (needs storage write access). Returns the file metadata, not its bytes. Scope: storage:read. Cost: free.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "obj_0123456789abcdef0123456789abcdef"
    },
    "name": "get_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFile id (obj_...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, and the description adds substantive context on top: the required scope (storage:read), the fact that the call is free, the metadata-not-bytes return shape, and where the id must come from.

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?

Extremely tight: purpose first, then trigger, then prerequisite, then return contrast, then scope and cost as labeled fragments. No sentence is redundant and the ordering front-loads what matters.

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 single-parameter read tool with full annotation coverage and no output schema, the description covers purpose, prerequisite, return shape, auth scope, and cost — nothing an agent needs to invoke it correctly is missing.

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 100% so the id format is already documented, but the description adds provenance for the value (list_objects or commit_upload), which meaningfully helps an agent construct a valid call rather than guess an id.

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 file's metadata') and immediately bounds the result with 'Returns the file metadata, not its bytes,' which cleanly separates it from sibling tools like list_objects or commit_upload that touch file content or collections.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('Use when checking a file's key, size or checksum') and a prerequisite for the id from list_objects or commit_upload, which is real routing guidance. However the parenthetical '(needs storage write access)' is ambiguous about which operation requires write access, which could mislead an agent about its own permissions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources