Skip to main content
Glama

edit_doc_content

Replace exact text in a document by specifying the target string and its replacement. Use this to correct or update content within a specific document.

Instructions

Edits the content of a document based on the provided new content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYesID of the document to edit.
old_strYesThe string to be replaced. Must match exactly, including whitespace.
new_strYesThe new string to replace the old string.
Behavior2/5

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

With no annotations, the description must disclose important behaviors. It states 'Edits' implying mutation, but fails to mention that the operation is a find-and-replace, that it modifies data destructively, or any error conditions (e.g., if old_str is not found). The description is insufficient for safe invocation.

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 description is a single short sentence, which is concise but lacks structure. It repeats the tool name and does not prioritize key information. Every sentence should add value, and this one merely paraphrases the name without providing critical details.

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

Completeness2/5

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

Given no output schema, no annotations, and three required parameters, the description should explain the return format, error behavior, and the find-and-replace process. It provides none of these, making the tool incomplete for an agent to use confidently.

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 coverage is 100% with clear descriptions for all three parameters. The tool description adds no additional semantic value beyond the schema; it merely restates that editing occurs. Since the schema already covers full meaning, a score of 3 is appropriate.

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?

Description states 'Edits the content of a document', clearly indicating the verb and resource. It distinguishes from sibling 'read_doc_content' which is a read operation. However, it does not specify that the edit is a find-and-replace, which could lead to ambiguity about the exact editing mechanism.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus its sibling or other alternatives. The description does not mention prerequisites, context, or limitations, leaving the agent to infer usage from the name and schema.

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/amulya-acharya/mcp-doc-chat'

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