Skip to main content
Glama

file_get

Read-only

Returns a file's content by fid: an image as an image, text as text, up to 5242880 bytes; larger files, video, archives and other binaries are not returned inline. An attach token without an entry in attaches means the attachment was deleted or the text copied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fidYesFile ID: an attaches key and the fid in attach:<fid>
entityNoOptional owner entity

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, but the description adds real behavioral context: the 5242880-byte inline cap, which content types are inlined, and the edge case where an attach token has no attaches entry (deleted attachment or copied text). The last sentence is terse but discloses a failure mode the schema does not.

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 dense sentences with the core behavior (what comes back and the size/type limit) front-loaded, followed by the edge case. No filler.

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?

With no output schema, the description correctly spends its budget describing the return shape (image as image, text as text, size cap, non-inline types) and one failure mode. It still leaves unclear what the caller actually receives for a non-inline file, which is the main remaining gap.

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?

Schema coverage is 100% and the fid description already explains the 'attach:<fid>' relationship, so the schema carries the parameter burden. The description adds no format or constraint detail for the optional entity object beyond what the schema states.

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?

States a specific verb and resource ('Returns a file's content by fid') and immediately scopes it with return-format rules, which separates it in spirit from file_info and file_url. It never names those siblings, so the differentiation is inferable rather than explicit.

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-not condition: larger files, video, archives and other binaries are not returned inline, so an agent knows this tool won't work for those cases. It does not route the agent to an alternative (file_url, file_info) for the non-inline cases.

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