Skip to main content
Glama
gwmage

Rootr MCP Server

Edit a Rootr document by anchor replace

rootr_edit

Replace an exact snippet of text in a Rootr document. Requires the exact text to find; fails with a clear error if missing or ambiguous, enabling precise targeted edits.

Instructions

Replace an exact snippet of text ("find") with new text ("replace") inside a Rootr document. Fails with a clear error if the snippet is missing or ambiguous (not unique), so read the document first to copy the exact text to find. Good for precise, targeted edits; use rootr_append instead when you are only adding new content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findYesExact existing text to find (must be unique unless replaceAll is set)
targetYesDocument path (starting with "/") or node id
replaceYesText to replace it with
replaceAllNoReplace all occurrences instead of requiring uniqueness
Behavior4/5

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

Annotations already indicate non-read-only and non-destructive. Description adds that the tool fails with a clear error if snippet is missing or ambiguous (not unique), and hints at replaceAll behavior. Behavior is well-disclosed.

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?

Three concise sentences: first describes the operation, second explains error handling and prerequisite, third provides usage guidance and alternative. No wasted words.

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?

Tool's purpose, error behavior, and usage compared to sibling are covered. No output schema, but mutation tool return values are typically obvious. Could mention idempotency or effect on document structure, but sufficient for most agents.

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

Parameters4/5

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

Schema covers all parameters with descriptions (100% coverage). Description adds context that 'find' must be exact and unique unless replaceAll is set, slightly enhancing semantics beyond schema.

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?

Clearly states it replaces an exact snippet of text with new text in a Rootr document. Distinguishes itself from rootr_append, which is for adding new content.

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?

Explicitly says when to use it (precise targeted edits) and when to use rootr_append (adding new content). Also advises reading the document first to copy exact text, providing a prerequisite.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gwmage/rootr-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server