Skip to main content
Glama

Update note

update_note
Destructive

Replace the Markdown content of an existing note while keeping its frontmatter, or supply new frontmatter to overwrite it.

Instructions

Replace the content of an existing note. The note keeps its frontmatter unless "frontmatter" is given, which then replaces it.

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": {
      "path": "<path>",
      "content": "<content>"
    },
    "name": "update_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the note
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.
contentYesNew content (Markdown)
frontmatterNoNew frontmatter, replacing the existing frontmatter

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / content / description
      Previous value: -"New content"New value: +"New content (Markdown)"
    • addedInput schema / properties / frontmatter / additionalProperties
      Added value: +{}
    • changedInput schema / properties / frontmatter / description
      Previous value: -"Updated frontmatter"New value: +"New frontmatter, replacing the existing frontmatter"
    • addedInput schema / properties / frontmatter / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / path / minLength
      Added value: +1
    • changedInput schema / properties / vault / description
      Previous value: -"Vault name"New value: +"Vault name. May be omitted when only one vault is configured; see list_vaults."
    • changedInput schema / required
      Previous value: -[
      -  "vault",
      -  "path",
      -  "content"
      -]New value: +[
      +  "path",
      +  "content"
      +]
  2. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description adds genuinely useful behavior beyond that: the replacement is wholesale, and frontmatter is preserved by default unless explicitly supplied. It stops short of stating what happens when the path does not exist or whether the write 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?

Two short sentences, front-loaded with the core action and followed immediately by the one non-obvious default. Nothing is padded or repeated from the schema.

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 4-parameter destructive mutation with a nested object and no output schema, the description covers the action and the key frontmatter default. The vault parameter is left to the schema, which documents it adequately, so nothing critical is missing for correct invocation.

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 baseline would be 3, but the description adds real meaning the schema does not: frontmatter is retained on replacement unless the parameter is provided. This clarifies the default behavior of an optional nested-object parameter that the schema only labels as 'replacing the existing frontmatter'.

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 and resource ('Replace the content of an existing note'), making it clearly a mutation of an existing note rather than a creation. It does not name create_note or delete_note as alternatives, so the distinction from siblings is left implicit.

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 implied by 'existing note' – the agent can infer this is not for creating notes – but there is no explicit when-to-use/when-not-to-use guidance or named alternative such as create_note for new files or get_note for reading.

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