Skip to main content
Glama
io.github.rwestergren/cronometer-api-mcp

io.github.rwestergren/cronometer-api-mcp

by rwestergren

update_note

Idempotent

Replace the text of an existing Cronometer diary note by note ID, optionally on a specified date, to correct or update food-log notes.

Instructions

Replace the text of a diary note.

Args: note_id: noteId of the note, from get_food_log. text: The new note text. date: Date the note is on as YYYY-MM-DD (defaults to today).

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

Input Schema

NameRequiredDescriptionDefault
dateNo
textYes
note_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.7

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare it as a non-read-only, idempotent, non-destructive, open-world write, so the safety profile is covered structurally. The description adds that date defaults to today and that text is replaced wholesale, but says nothing about the failure mode for an unknown note_id or whether the previous text is recoverable.

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?

Three short args-style lines, front-loaded with the purpose sentence and no filler. The Args block is slightly redundant with the schema titles but stays cheap and readable.

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?

A simple three-parameter mutation with an output schema present, so return values need not be described. Purpose, parameter meaning and the required-note provenance are all covered; only edge-case behavior on a missing note is absent.

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 description coverage is 0%, so the description carries the full load and does so: it names all three parameters, explains where note_id originates, gives the YYYY-MM-DD format and today-default for date. Minor tension remains since the schema's date default is null while the prose says today.

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?

Specific verb+resource: "Replace the text of a diary note" tells an agent exactly the operation and object. It does not explicitly contrast with add_note, but the replace-versus-append distinction is implicit in the wording.

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?

The description gives useful provenance for note_id ("from get_food_log"), which implies the note must already exist, but it never says when to prefer update_note over add_note or what to do if the note is absent. Usage is implied rather than stated.

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