Skip to main content
Glama

download_file

Read-onlyIdempotent

Retrieve the contents of a file attached to a row in a file or image column, returning text for readable formats and a download URL for binary files. Use get_row first to list available files, then specify the file name to download a specific one.

Instructions

Read the content of a file attached to a row in a file or image column. Use get_row first to see available files in the column, then pass the exact file_name to select a specific file.

Returns JSON with: file_name, file_size (bytes), content, content_type, and download_link (only when content_type is "binary_url").

content_type values:

  • "text": file content returned as text (.txt, .csv, .md, .json, .xml, .html, .yaml, .sql, and common programming languages)

  • "pdf_text": extracted text from PDF files

  • "binary_url": non-text files, files >1 MB, or external URLs — content contains a message, download_link contains the URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYesTarget table name
columnYesName of the file or image column
row_idYesRow ID containing the file
file_nameNoSpecific file name to download (if column contains multiple files). If omitted, the first file is used.
Behavior4/5

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

Annotations declare readOnlyHint=true and destructiveHint=false, so tool is safe. Description adds value by explaining content_type behaviors (text, pdf_text, binary_url), file size limit >1MB triggers binary_url, and that download_link is only present for binary_url. This is rich behavioral context beyond annotations.

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?

Well-structured with clear sections: purpose, usage order, return fields, content_type enumeration. Some minor redundancy (file_name explained twice), but overall efficient for the level of detail provided.

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?

Complete for a read-only file download tool. Covers all necessary usage: prerequisite get_row, file selection, content types, return fields, edge cases (external URLs, large files). No output schema exists, but description comprehensively documents return structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% description coverage, so baseline is 3. Description adds significant value: clarifies file_name optionality (omission uses first file), explains behavior of different content types, and describes return structure. This far exceeds the schema alone.

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?

Describes exactly what the tool does: reads content of a file attached to a row in a file/image column. Distinct from upload_file (write) and get_row (which only sees file metadata). Clear verb+resource+scope.

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 tells when to use: after get_row to see available files; how to select a specific file by name; explains that omitting file_name uses first file. Sibling upload_file is inverse operation, clearly distinguishable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/seatable/seatable-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server