Skip to main content
Glama
Gemini Remote Agent MCP

Gemini Remote Agent MCP

by lisycotana

write_file

DestructiveIdempotent

Create a UTF-8 file or explicitly overwrite one with SHA-256 verification and return a diff, so you can safely write and confirm changes inside a scoped workspace.

Instructions

Create a UTF-8 file or explicitly overwrite one with expected_sha256; returns a diff.

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": {
      "path": "<path>",
      "content": "<content>"
    },
    "name": "write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
contentYes
dry_runNo
overwriteNo
expected_sha256No

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is partly covered. The description adds genuine value beyond that: the encoding is fixed to UTF-8, overwrite requires an expected hash as a guard, and the response is a diff. It omits what dry_run does and whether the overwrite flag must also be set alongside expected_sha256, which is exactly the kind of detail a destructive tool needs.

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?

A single front-loaded sentence with no filler, where the create case leads and the overwrite guard and return value follow. Every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the diff return value needs no elaboration here. For a destructive write tool with five undocumented parameters, however, the description leaves too much implicit, notably the dry_run preview path and how overwrite and expected_sha256 interact. It is workable but has clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across five parameters, so the description carries the full burden. It clarifies only content (UTF-8) and expected_sha256 (used for explicit overwrite), leaving dry_run, overwrite, and path completely undocumented. Two of five parameters explained is inadequate at this coverage level.

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 states a specific verb and resource ('Create a UTF-8 file') and distinguishes the two modes: fresh creation versus explicit overwrite gated by expected_sha256. It doesn't differentiate against the closest sibling, edit_file, so an agent can't tell from this text alone when to modify an existing file in place rather than rewrite it.

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?

'or explicitly overwrite one with expected_sha256' gives a real conditional: overwriting is opt-in and requires a hash. But the description never says when to prefer edit_file, nor what dry_run=true is for, and it doesn't warn that a plain create will fail or clobber on an existing path. Usage is implied rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.