Skip to main content
Glama

Uploads Read File

uploads_read_file
Read-onlyIdempotent

Read a Workspace Files upload by upload ID to inspect user-uploaded content. Returns UTF-8 text for text files or a 150-byte base64 preview for other files, plus name, type, and size.

Instructions

Read the content of one Workspace Files upload by its upload ID, to check what the user uploaded. Files stored with a text/ MIME type come back whole as UTF-8 text; any other file returns only a base64 preview of its first 150 bytes, so pass binary files to the consuming tool (e.g. drive_upload_file) instead. Returns name (the original filename), type, size, and content or content_base64 with encoding and truncated.

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": {
      "name": "<name>"
    },
    "name": "uploads_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesUpload ID (upl_...): the upload_id (also name) of a file listed by uploads_list_files.

Output Schema

NameRequiredDescriptionDefault
resultYesUploaded file metadata and readable content or binary preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish a safe, idempotent read, so the description correctly spends its words on behavior annotations can't express: MIME-type-dependent output and the 150-byte base64 truncation for non-text files. That truncation caveat is exactly the kind of surprise an agent must know before relying on the result.

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 the critical caveat about text vs. binary appears before the return-value sentence, which is good ordering. The final sentence enumerating return fields partly duplicates the output schema, which is the only wasted space.

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?

For a single-parameter read with a full output schema, the description covers the one non-obvious behavior (truncated binary previews) and the escalation path. The return-field enumeration is redundant given the output schema but nothing an agent needs is missing.

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?

Only one parameter at 100% schema coverage, and the schema already documents the upl_... upload ID and its source (uploads_list_files). The description restates it as "upload ID" without adding format or sourcing detail beyond the schema, so it lands at the baseline.

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?

Specific verb and resource ("Read the content of one Workspace Files upload by its upload ID") with an explicit goal (check what the user uploaded). It clearly distinguishes this tool from drive_upload_file by routing binary files there, so an agent can tell which tool owns the read.

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 a clear when-to-use context (verifying an upload before acting on it) and an explicit exclusion rule: binary files should be passed to the consuming tool such as drive_upload_file. It stops short of naming the sibling for listing uploads (uploads_list_files) but the routing guidance present is strong.

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