Skip to main content
Glama

clearly_edit

Destructive

Change part of an artifact. The operation preserves content outside the requested change. Arguments depend on the artifact type. A document takes { find, replace } and refuses an ambiguous match rather than guessing; a sheet takes cells; a deck takes a slide role; a ticket takes fields; a CANVAS takes { ids, patch } — the node ids (or layer names) and the JSON fields to set on them (x, y, w, h, fill, stroke, text, fontSize, opacity, …). A textual find/replace is REFUSED on grids and scenes, where it has no defined meaning. WHO CAN SEE IT: on a document, sheet, deck or canvas, changes: { sharing: { visibility?, project? } } — project (id or title) files it so that project's members see it, null takes it back to private; visibility "private" | "workspace" applies while it is unfiled. Only on work you made; the reply says who can see it now. Pass batch to edit several.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clearly_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNodocument only: replace every occurrence instead of refusing an ambiguous match.
findNodocument only: the exact text to replace. Must match once unless `all` is set.
typeNoOverride the type when the target carries no extension.
batchNoEdit several: `[{ target, … }, …]`. Max 50.
targetNoPath, key or id of the artifact to change.
changesNoType-specific change fields. On a document, sheet, deck or canvas, `{ sharing: { visibility?, project? } }` changes who can see it.
replaceNodocument only: what replaces it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / changes / description
      Previous value: -"Every other type: the per-type change. See clearly_catalog { type, operation:\"edit\" }. On a document, sheet, deck or canvas, `{ sharing: { visibility?, project? } }` changes who can see it."New value: +"Type-specific change fields. On a document, sheet, deck or canvas, `{ sharing: { visibility?, project? } }` changes who can see it."
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description adds far more: partial preservation of surrounding content, refusal on ambiguous matches rather than guessing, hard refusal of find/replace on grids and scenes, an ownership precondition, and a stated reply payload ("the reply says who can see it now"). This is exactly the extra behavioral context annotations cannot express.

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

Conciseness4/5

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

Front-loaded with purpose and preservation guarantee, then structured by artifact type and by permission semantics. It is dense and long, and a few clauses (batch passing, find/replace restatement) duplicate schema text, but no sentence is filler given how many artifact types must be disambiguated.

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?

For a 7-parameter, nested, multi-artifact mutation tool with no output schema, the description covers type-dependent arguments, refusal behavior, ownership constraints, and the return information about visibility. It stops short of describing failure modes beyond ambiguity and grid/scene refusal, or what the reply looks like outside the sharing case.

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%, so a 3 is the baseline, but the description genuinely adds meaning: it explains that arguments vary by artifact type, gives the canvas `{ ids, patch }` contract with the settable JSON fields, clarifies `find` must match once unless `all` is set, and explains the sharing sub-object's `project`/`visibility` semantics including the null-to-private rule. Only the `type` override and `batch` cap are left to the 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?

States a specific verb and resource ("Change part of an artifact") and immediately scopes it against whole-artifact replacement by promising that "content outside the requested change" is preserved. The per-type argument enumeration (document find/replace, sheet cells, deck slide role, ticket fields, canvas ids/patch) makes the tool's reach concrete and distinguishes it from clearly_create, clearly_delete and clearly_replace.

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

Usage Guidelines4/5

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

Gives explicit usage conditions and exclusions: a textual find/replace "is REFUSED on grids and scenes, where it has no defined meaning," and sharing changes apply "Only on work you made." It does not explicitly route the agent to a named sibling (e.g. use clearly_replace when you want a full rewrite), so guidance is strong but not fully comparative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.