Skip to main content
Glama
Airgap-fleet

file-bridge

by Airgap-fleet

read_file

Read a file from the filesystem and return its content as text, or base64-encoded string if binary, with configurable size limits and encoding.

Instructions

Read a file from the filesystem.

Returns the file content as text. Binary files are returned as base64-encoded strings with is_binary=True. Supports configurable size limits and encoding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYesRequest model for read_file tool.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe path that was read.
sizeYesFile size in bytes.
contentYesFile content as text.
encodingYesEncoding used to read the file.
is_binaryYesWhether the file was detected as binary.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.4

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the full behavioral disclosure burden. It does this well by explaining return behavior for text vs binary files, mentioning the `is_binary=True` flag, and noting configurable size limits and encoding. It does not cover error cases like missing files or permission issues, but the core behavioral traits are disclosed.

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?

The description is three sentences with no redundant words. The primary action is front-loaded, followed by essential return-format details and configurable options. Every sentence adds value.

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?

Given the tool's simplicity and the presence of an output schema (per context signals), the description adequately covers what the agent needs: return text, binary representation, and configurable limits/encoding. It could mention error behavior but is otherwise complete for a read-only file operation.

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?

Input schema coverage is 100%, so the schema already documents path, encoding, and max_size thoroughly. The description's reference to 'configurable size limits and encoding' merely echoes the schema without adding deeper meaning, keeping this at the baseline 3.

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 states the exact action ('Read a file from the filesystem') with a specific verb and resource. It is clearly distinct from sibling tools like list_dir (directory listing), search_files (searching), and write_file/patch_file (modification).

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?

The description makes the tool's use case clear: retrieve file content from the filesystem. While it doesn't explicitly mention alternatives or exclusions, the context is direct enough that an agent can infer when to use read_file versus siblings. It lacks explicit 'use this instead of...' guidance, so it doesn't earn a 5.

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/Airgap-fleet/file-bridge'

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