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

Replaced by ronda.

Moved to com.useronda/ronda

Edit files (patch)

apply_patch
DestructiveIdempotent

Change existing files in the sandbox repository and commit it on the session's ronda branch (not pushed to GitHub until open_pr). The preferred way to edit. Accepts a unified diff or a '*** Begin Patch' envelope; it can modify, rename and delete lines and files. All-or-nothing: on mismatch nothing changes and the error explains why (re-read the file and regenerate). Retrying an already-applied patch returns alreadyApplied:true. The preview hot-reloads. 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>",
      "patch": "<patch>"
    },
    "name": "apply_patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYesEither a unified diff (git style, `--- a/path` / `+++ b/path` with @@ hunks) or a `*** Begin Patch` … `*** End Patch` envelope (Update File / Add File / Delete File).
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.
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 of the change; 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.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses atomic failure behavior, how to recover from a mismatch, idempotent retry behavior via alreadyApplied:true, commit scope to the ronda branch without pushing, sandbox execution, and preview hot reload. This gives the agent a much clearer operational picture than destructiveHint and idempotentHint alone.

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?

The description is front-loaded with purpose and scope, then covers failure behavior, retries, sandbox context, and anchors. It is dense but not wasteful, though the final anchor sentence is lengthy and partly repeats schema content.

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

Completeness5/5

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

For a destructive mutation tool with no output schema, the description covers the essential context: what it edits, where it commits, that it is not pushed yet, atomic failure behavior, idempotent retries, and sandbox execution. No critical behavioral gap remains for an agent to call it correctly.

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 documents the patch formats, anchors, context, message, model, session, and route parameters. The description restates the patch formats and anchor behavior rather than adding new parameter-level meaning.

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 a specific verb and resource: it changes existing files in the sandbox repository and commits to the session's ronda branch. It also distinguishes itself from related tools by calling itself 'the preferred way to edit', explicitly saying changes are not pushed until open_pr, and noting the sandbox can run project code via run_script.

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?

It clearly marks itself as the preferred editing method and limits scope to existing files, which implicitly directs file creation elsewhere. It does not explicitly name when not to use it or the exact alternative for new files, so it falls short of the strongest guidance.

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