Skip to main content
Glama

Edit a note

edit_note
Destructive

Changes part of a note: replaces the exact passage find (it must occur once) with replace. Prefer it to update_note for small changes. Read the note with get_note first.

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": {
      "id": "<id>",
      "find": "<find>",
      "replace": "<replace>"
    },
    "name": "edit_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
findYesThe exact text to replace, copied from the note
replaceYesThe new text (empty to remove the passage)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds a real behavioral constraint beyond that: `find` 'must occur once', which discloses a failure mode (non-unique or absent match) that the annotations do not cover. It stops short of saying what error or side effect occurs when that precondition fails, or whether the edit is reversible.

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 short sentences, front-loaded with the core mechanism before the alternative and the prerequisite. Every sentence carries distinct information with no restatement of the title or name.

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 3-parameter mutation with no output schema, the definition covers the mechanism, the sibling alternative, and the read-first prerequisite. The remaining gap is the unspecified `id` semantics and the behavior on a zero-or-multiple match, which an agent calling this correctly would benefit from knowing.

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 67% and `id` carries no schema description, so the description compensates by framing the operation as acting on 'part of a note'. It also adds meaning beyond the schema for `find`: not just 'exact text' but a text that must occur exactly once, a uniqueness requirement absent from the schema field.

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 ('Changes part of a note') and then the precise mechanism: replaces the exact passage `find` with `replace`. It also distinguishes itself from the sibling update_note, so an agent can choose between them without reading either schema.

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 routes usage: 'Prefer it to update_note for small changes' names the alternative and the condition that selects it, and 'Read the note with get_note first' gives the required prerequisite step. Both the when and the setup ordering are stated.

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.

Resources