Skip to main content
Glama

nreki_code

Read, edit, or batch-edit code by symbol with syntax and type checks before writing, plus undo, focused reads, and output compression to reduce tokens.

Instructions

Read and edit code. read: whole file; with focus:"a,b" only those symbols (also compress focus). edit/batch_edit: change a symbol by name; syntax and types are checked before writing, nothing is written on error. mode patch: replace search_text with replace_text inside the symbol (cheapest). undo: revert the last edit of path. filter_output: shrink terminal text (output). Also: compress:true or level for skeletons.

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": {
      "action": "<action>"
    },
    "name": "nreki_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
pathNo
editsNo
focusNo
actionYes
outputNo
symbolNo
new_codeNo
search_textNo
replace_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.1.2

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does deliver real behavioral guarantees beyond the obvious: edits are syntax- and type-checked before writing and "nothing is written on error," and undo is scoped to "the last edit of path." It still omits permissions/authorization needs, what batch_edit does on partial failure, and return shape, keeping it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is short but reads as compressed notes rather than structured prose — dangling fragments like "(also compress focus)" and "(output)" force the reader to guess what they modify. It is front-loaded with the read path but then interleaves edit, undo, and filter behavior without clear separation.

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?

For a 10-parameter, six-action, unannotated, no-output-schema tool, this description is the only documentation available, and it does cover the main actions and the safety guarantee. Gaps remain around the nested edits array, several mode values, and error/return behavior, so it is adequate but not complete.

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 0% across 10 parameters, so the description must compensate and it only partially does: it explains path, symbol, focus, output, search_text/replace_text and the patch mode. It never explains new_code, the edits array structure, or the insert_before/insert_after modes, and it references a "level" parameter that does not appear in the schema properties at all.

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 opens with a specific verb pair and resource ("Read and edit code") and then enumerates what each of the six actions does (read, compress, edit, batch_edit, undo, filter_output), so an agent can map intent to action. It does not distinguish itself from the siblings nreki_guard or nreki_navigate, so it stops short of a 5.

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?

There is implied routing guidance — "with focus:" narrows a read, and "mode patch ... (cheapest)" steers toward the low-cost edit path, which is genuine selection help. However, nothing states when to use this tool versus the siblings, and there are no explicit exclusions or prerequisites for any action.

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

Deploy Server

Other Tools