Skip to main content
Glama
This connector has been deprecated in the official MCP Registry

Replaced by ronda.

Moved to com.useronda/ronda

Replace whole file

write_file
DestructiveIdempotent

Write a file's ENTIRE content, replacing whatever is there (or creating it), and commit it on the session's ronda branch (not pushed to GitHub until open_pr). Overwrites existing content, so prefer apply_patch for edits and create_file for new files; use this only to rewrite a file wholesale. Writing identical content is a no-op. Changes take effect in the isolated sandbox, where the project's code (including package.json scripts you change) can run via run_script. Optionally pass anchors (up to 3) and anchorRoute: visible text on the changed page that points at the change, used by the Show me link; ronda checks each against the page and the change and drops any it cannot find.

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

Input Schema

NameRequiredDescriptionDefault
pathYesFile path relative to the repository root. Parent directories are created.
anchorsNoUp to 3 pieces of visible page text that point at the change, used by the Show me link; ronda checks each against the page and the change and drops any it cannot find.
contentYesFull new file content (UTF-8). Replaces the file if it exists.
contextNoA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
messageNoShort description; used as the commit message and edit summary.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
sessionIdYesThe ronda session id, from open_session or list_sessions.
anchorRouteNoPage path the anchors are on, e.g. '/pricing'. Omit for the page ronda infers from the change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: commit happens on the session's ronda branch, nothing reaches GitHub until open_pr, identical content is a no-op, and changes land in an isolated sandbox where run_script can execute them. The anchors lifecycle (checked against the page, silently dropped when unfound) is a useful non-obvious trait. It stops short of stating what the call returns or how conflicts/concurrent edits are handled.

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?

Front-loaded with the destructive replacement semantics and the sibling routing before secondary details like the sandbox and anchors. The long anchors sentence largely duplicates schema text and could be trimmed, but every other sentence carries distinct information.

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?

For an 8-parameter destructive write with no output schema, the description covers destination, commit/publish staging, sibling alternatives and anchor validation. The remaining gap is the return value and the purpose of the analytics-only parameters (context, llm_model), which go unmentioned.

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 description coverage is 100%, so the schema already carries path, content, message, anchors, anchorRoute, sessionId, context and llm_model. The description restates the anchors/anchorRoute meaning almost verbatim from the schema, adding little, and says nothing about the analytics parameters or how message is used as a commit message. Baseline 3 fits.

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?

Names a specific verb and resource ("Write a file's ENTIRE content"), states the full-replacement semantics and the create-or-overwrite outcome, and explicitly contrasts itself with apply_patch and create_file. An agent can pick this over its closest siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-not guidance ("prefer apply_patch for edits and create_file for new files; use this only to rewrite a file wholesale") and names the downstream alternative for publishing (open_pr). Alternatives and the selecting condition are both spelled out.

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