Skip to main content
Glama

files_retrieve_content

Download a file's content from a file upload, returning a summary with filename, size, and content-type. Optionally encode small files as hex string.

Instructions

Download a file. By default returns a summary (filename + bytes + content-type); pass as_hex=true to inline small file content as a hex string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_hexNoIf true, encode the binary content as hex. Useful for small files.
file_idYesNumeric file_id returned by files_upload
Behavior3/5

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

No annotations are provided, so the description must carry the full burden. It discloses the default return format and the effect of 'as_hex', but does not mention potential limitations (e.g., file size limits, permissions, or whether the download is destructive).

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?

Two sentences, no wasted words. The key action ('Download a file') is front-loaded, and the parameter behavior is concisely explained.

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?

No output schema exists, so the description must describe return values. It does so clearly (summary fields, hex option). Given the tool's simplicity, it is complete enough for an agent to understand the behavior.

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%, baseline 3. The description adds value by explaining the 'as_hex' parameter's use case ('Useful for small files') and clarifying that 'file_id' comes from 'files_upload'. This goes beyond the schema's descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Download a file') and resource ('a file'). It distinguishes default behavior (summary) from optional inline hex encoding, but does not explicitly differentiate from the sibling tool 'files_retrieve', which may have overlapping functionality.

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

Usage Guidelines3/5

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

The description provides guidance on when to use the 'as_hex' parameter, but does not give context on when to use this tool versus alternatives like 'files_retrieve' or when not to use it.

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/ianrey258/minimax-mcp-api'

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