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.

Write a file

rent_write_file
DestructiveIdempotent

Needs a rent.dev account: sign in when your client offers it, or call rent_signup first. Writes a file in a running sandbox, creating parent directories and replacing what is there. content is UTF-8 text, or base64 with encoding 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>",
      "content": "<content>"
    },
    "name": "rent_write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
contentYes
encodingNoutf-8
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
modeYes
nameYes
pathYes
sizeYes
typeYes
modified_atYes

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 declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety bar is lower; the description still earns credit by spelling out concretely what destruction means ('replacing what is there') and by disclosing auto-creation of parent directories, neither of which appears in annotations. It adds the auth precondition too, though it says nothing about permissions on the sandbox or behavior on failure.

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 tight sentences with zero waste, front-loading the blocking prerequisite before the operation's behavior. Every clause carries information an agent needs: auth route, target scope, directory creation, overwrite semantics, and encoding.

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, so return values need not be described, and the description covers the auth path, overwrite behavior and encoding -- the items most likely to cause a failed or surprising call. The one meaningful hole is path semantics, which is undocumented in both schema and description, so an agent must guess at path form.

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 only 25% -- just sandbox_id is documented -- so the description must compensate. It does clarify content semantics (UTF-8 text, or base64 when encoding is base64), which is genuinely useful, but leaves path entirely uncharacterized: whether it must be absolute, where it is rooted, or whether traversal is allowed. Partial compensation for a real coverage gap warrants a middle score.

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 plus scope: 'Writes a file in a running sandbox,' with the added behaviors of creating parent directories and replacing existing content. The write-vs-read contrast with the sibling rent_read_file is obvious from naming, but the description never explicitly differentiates itself from alternatives such as rent_exec.

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 an explicit prerequisite -- sign in when the client offers it, or call rent_signup first -- and names the alternative tool to use when unauthenticated. It does not say when not to use this tool (for example, when rent_exec or rent_run_code would be the better route for producing files), so guidance stops short of full when/when-not coverage.

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