Skip to main content
Glama

Read Item Files

item.read_files
Read-onlyIdempotent

Read the text of the files on one row: uploads in its File List fields, and Google Drive files the user linked themselves. Reads up to 5 files (10 MB each) in field and cell order until the text budget is spent; more counts the rest — pass attribute to read one field, or fileName to read one file. PDF, DOCX, XLSX, PPTX, CSV, text, and Google Docs, Sheets and Slides are read. A PNG, JPEG, WebP or GIF upload of up to 3.75 MB is shown to you as an image after the result, when your model can read images: describe only what it plainly shows. An audio upload is listed under unreadable to transcribe with audio.transcribe. A Drive file another member linked, an image from Google Drive, or a file that cannot be read is listed under unreadable with why (and the Drive link): tell the user, and never guess what it contains.

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": {
      "sheetId": "<sheetId>",
      "itemId": "<itemId>"
    },
    "name": "item.read_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYesThe row's id
sheetIdYes
fileNameNoRead only the file with this name, as the row lists it; omit to read every file
attributeNoRead only this File List field (its name or code); omit to read every File List field

Output Schema

NameRequiredDescriptionDefault
itemYes
moreYesFiles not read: past the first 5, or after the text budget ran out
noteNo
filesYes
unreadableYesFiles that could not be read, with why

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / unreadable / items / properties / url / description
      Previous value: -"The Drive or Dropbox link, for the user to open it there"New value: +"The Drive, Dropbox or OneDrive link, for the user to open it there"
  2. Changed1 schema field changed
    • addedInput schema / properties / fileName
      Added value: +{
      +  "description": "Read only the file with this name, as the row lists it; omit to read every file",
      +  "maxLength": 255,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the read-only, idempotent annotations, the description discloses concrete behavioral limits: up to 5 files, 10 MB per file, a text budget, and `more` counting the remainder. It also explains image handling, supported formats, audio fallback, and exact handling for unreadable or externally linked Drive files. This is substantial context that annotations alone do not provide.

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?

The description is dense but front-loaded: it states what is read before detailing limits, formats, images, audio, and unreadable cases. Every clause carries useful information for a complex tool, though the single long paragraph could be easier to scan with light structuring.

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 file-reading tool with an output schema, it covers the operational details an agent needs: supported formats, size and count limits, ordering, image display behavior, audio alternative, and how unreadable files are surfaced. The description is complete relative to the tool's complexity.

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 75%, with descriptions already covering `itemId`, `fileName`, and `attribute`. The description adds meaningful operational semantics: reads proceed in field and cell order until the text budget is spent, `more` counts the rest, `attribute` targets one field, and `fileName` targets one file. It does not clarify `sheetId`, but otherwise adds value beyond the schema.

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?

The description opens with a specific verb and resource: "Read the text of the files on one row." It immediately scopes the tool to File List uploads and user-linked Google Drive files, so an agent can tell this is file-content reading rather than generic row or sheet reading.

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?

It gives clear usage guidance for scoping reads with `attribute` or `fileName`, and explicitly routes audio uploads to `audio.transcribe`. It also explains that certain Drive files and unreadable files should be reported to the user rather than guessed at. It does not explicitly contrast with non-file read alternatives, so it falls short of a full when/when-not/alternatives statement.

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