Skip to main content
Glama

akb_edit

Replace exact text in a single document. Requires unique old_string or use replace_all to replace all occurrences.

Instructions

Edit a single document by replacing exact text. Scope is one document. old_string must be unique within the document (or use replace_all). If old_string is not found or appears multiple times, the call fails with a clear error. For find-and-replace across many documents, use akb_grep with replace instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYesDocument URI
old_stringYesExact text to replace. Must be unique in the document body unless replace_all=true. Include surrounding context if needed for uniqueness.
new_stringYesReplacement text. Can be empty to delete.
replace_allNoReplace all occurrences (default: false, requires old_string to be unique)
messageNoCommit message describing the change
Behavior4/5

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

Despite no annotations, description discloses error behavior (fails if not found or multiple occurrences) and the replace_all flag's effect. Lacks details on permissions or reversibility, but sufficiently transparent for a mutation tool.

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 sentences, each dense with information. Main action in first sentence, constraints in second, alternative in third. No redundancy or filler.

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?

Given no output schema and no annotations, description covers core behavior, error conditions, and provides a clear alternative. Sufficient for an agent to decide to invoke the tool correctly.

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 coverage is 100%, but description adds valuable context: old_string must be unique unless replace_all, new_string can be empty to delete, and suggests including surrounding context for uniqueness.

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?

Description clearly states the verb 'Edit' and resource 'a single document' with specific action 'replacing exact text'. It distinguishes from sibling akb_grep by specifying scope (one document vs many).

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 provides when to use (single document, exact text replacement) and when not to use (many documents: use akb_grep instead). Also details constraints like old_string uniqueness and replace_all behavior.

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/dnotitia/akb'

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