Skip to main content
Glama

preview_exact_text_edit

Preview an exact-text replacement before editing a shared Word Online document; this draft step does not modify the file.

Instructions

Draft one exact-text replacement; does not edit any document.

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": {
      "target": "<target>",
      "replacement": "<replacement>"
    },
    "name": "preview_exact_text_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYes
replacementYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-alpha.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure, and it does make the most important point: no document is modified, so this is safe to call. It stops there, saying nothing about what a 'draft' returns, whether the target must match exactly once, how ambiguity or a missing target is handled, or whether the draft is persisted anywhere.

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?

A single short sentence with the scope statement front-loaded and the critical non-mutation caveat attached. No filler, no restatement of the tool name.

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?

For a two-parameter tool with zero annotation coverage, no output schema, and undocumented parameters, one line is not enough. The agent cannot tell whether the result is a proposed diff, a confirmation token, or plain text, nor what constraints make a draft valid.

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

Parameters2/5

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

Schema description coverage is 0% for both required parameters. The description hints that 'target' is the exact text to be replaced, but does not explain the matching semantics (case sensitivity, uniqueness, whitespace), nor does it say what 'replacement' does when empty. The 5000-character limits suggest text snippets rather than identifiers, yet this is left for the agent to infer.

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 gives a specific verb ('Draft') and resource ('exact-text replacement'), and the clause 'does not edit any document' immediately clarifies the non-mutating nature. It does not differentiate from any related editing tool, but the sibling list contains only an unrelated share-link inspector, so no useful comparison is possible.

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?

Usage is only implied: the phrase 'does not edit any document' signals this is a preview/dry-run step rather than an actual edit, which is a meaningful hint. However, there is no statement of when to use it, what precondition triggers it, or what an agent should do with the draft afterward.

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