Skip to main content
Glama

Change a diary note

update_note
Idempotent

Change a diary note: add to it (body with body_mode 'append'), rewrite it (body_mode 'replace'), fix the date or title, set or add tags, link a race or session. note_id comes from get_notes or add_note. Only the fields you send change. Training sessions are update_session, not this. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.

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

Input Schema

NameRequiredDescriptionDefault
bodyNoText to append or the new body, see body_mode.
dateNoNew local date, YYYY-MM-DD.
tagsNoReplace the tags with this list.
titleNoNew title; empty string clears it.
note_idYesID of the note, from get_notes or add_note.
race_idNoLink to a race (race_id from get_calendar); empty string unlinks.
add_tagsNoAdd these tags, keeping the existing ones.
body_modeNo'append' adds the text as a new paragraph; 'replace' swaps the whole body. Default 'replace'.
session_idNoLink to a session (session_id from get_calendar); empty string unlinks.

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?

Beyond the annotations it discloses an auth requirement ("Requires signing in"), partial-update semantics, and the timezone/format contract for dates that annotations cannot express. One tension: annotations declare idempotentHint=true, while the advertised append path (body_mode 'append', add_tags) will duplicate content on retry, so the mutability profile is not fully reconciled. It also never says what the call returns.

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?

Front-loaded with the operation set, then constraints, then the sibling redirect and date/auth notes. Sentences are short, each carries distinct information (capabilities, ID provenance, partial-update rule, exclusion, date format, auth), with no filler.

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 9-parameter mutation tool with no output schema, the definition covers nearly everything an agent needs: auth, partial-update behavior, date semantics, ID sources, and the alternative tool. The one missing piece is the response shape, which is not documented anywhere and could matter for chaining calls.

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 the baseline is 3, but the description adds real meaning by framing body_mode as the append-vs-rewrite switch and by naming the upstream source of note_id (get_notes/add_note). It does not restate the empty-string clearing semantics for title/race_id/session_id, leaving those 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?

Opens with a specific verb+resource ("Change a diary note") and then enumerates the exact operations available: append body, replace body, fix date/title, set/add tags, link a race or session. It explicitly carves out the sibling it is not ("Training sessions are update_session, not this"), so an agent can route without opening 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?

Gives explicit when-to-use guidance (append vs replace via body_mode), the prerequisite for note_id ("from get_notes or add_note"), and a clear exclusion with the correct alternative named (update_session for training sessions). It also states the partial-update contract ("Only the fields you send change"), which removes any ambiguity about omitted fields.

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