Skip to main content
Glama
surgical-editing-server

surgical-editing-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SURGICAL_ROOT_DIRNoRestrict edits to one directory tree. Can also be set with the --root <dir> flag (the flag wins). When a root is set, relative paths resolve against it and any target outside it fails with `Path traversal blocked`.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
surgical_replaceA

Transactional exact-match editor. Send ONLY the minimal snippets to change, across one or more files. Each find must appear exactly once in its file. All operations are atomic: if any replacement fails, no file is written. On a miss, the error points to the most similar line so you can retry without re-reading. Set dry_run to get a unified diff without writing.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 1 tool

Disambiguation5/5

There is only one tool, so there is no possibility of misselection or overlapping purpose. Its description clearly frames it as an exact-match, atomic replacement editor.

Naming Consistency5/5

A single snake_case verb_noun-style name (surgical_replace) is internally consistent by definition and matches the server's stated purpose.

Tool Count3/5

One tool is thin for a general editing server, but the tool is deliberately broad (multi-file, multi-snippet, atomic, dry-run) so it earns its place. Still, a single operation is borderline for practical agent workflows.

Completeness3/5

Replacement plus dry-run diff covers the core edit loop, but there is no way to read files, create new files, append/insert at a location, or undo within this server. Agents must pair it with a separate read/inspect capability, leaving notable gaps.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues