Skip to main content
Glama
This connector has been deprecated

Replaced by rent.dev.

Duplicate listing. rent.dev is listed from the official MCP Registry as dev.rent/rent, and that listing is the maintained one.

Read a file

rent_read_file
Read-onlyIdempotent

Needs a rent.dev account: sign in when your client offers it, or call rent_signup first. Reads a file from a running sandbox. Without encoding the content comes back as UTF-8 text when it is valid UTF-8, else as base64.

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": {
      "sandbox_id": "<sandbox_id>",
      "path": "<path>"
    },
    "name": "rent_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path, e.g. /home/user/main.py.
encodingNo
sandbox_idYesSandbox id (`lse_…`) from rent_create_sandbox or rent_list_sandboxes. It names the sandbox for its whole life and keeps answering rent_get_sandbox, with the final state, after it ends.

Output Schema

NameRequiredDescriptionDefault
pathYes
sizeYesBytes.
contentYes
encodingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered. The description adds real behavioral context beyond them: the auth prerequisite and the encoding fallback rule (UTF-8 text when valid, otherwise base64), which an agent could not infer from annotations. It stops short of noting error behavior for missing paths or large/binary files.

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?

Three tight sentences with no filler. The only structural quibble is that the auth prerequisite is front-loaded ahead of what the tool actually does, so the purpose statement arrives second rather than first.

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?

An output schema exists and annotations are rich, so return values and safety need no elaboration. The description covers auth and the encoding default, leaving only edge cases (missing file, oversized content, permission errors) unaddressed, which is a minor gap for a simple read tool.

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?

With 67% schema coverage, sandbox_id and path are already documented in the schema. The description earns credit by explaining the default behavior of the optional `encoding` parameter, which the enum alone does not convey. That is meaningful added semantics beyond the schema.

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?

"Reads a file from a running sandbox" is a specific verb plus resource with a scoping qualifier (running sandbox). It is clearly distinct in practice from rent_write_file, but the description never names or contrasts a sibling, which keeps it at a solid 4 rather than 5.

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 opening sentence gives a genuine prerequisite (account needed, sign in or call rent_signup first), which is actionable guidance. However, there is no explicit when-to-use/when-not framing, e.g. nothing about when to prefer rent_exec or how this differs from other file access paths; usage is only implied.

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