Skip to main content
Glama

Update Highlight

update_highlight
Idempotent

Edits a highlight: its note and/or its color. The quoted text and the offsets are never changed, and the item it belongs to is untouched. An empty note or color removes it. Use list_highlights to read a highlight back.

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": {
      "highlight_id": "<highlight_id>"
    },
    "name": "update_highlight"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoThe new note. An empty string removes the note. Leave the argument out to keep it.
colorNoThe new color, e.g. #ffd60a. An empty string removes the color. Leave the argument out to keep it.
highlight_idYesThe highlight ID to edit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, idempotent, non-destructive), and the description adds real value on top: the immutability of quoted text/offsets and the parent item, plus the non-obvious rule that an empty string is a removal rather than a no-op. It does not say what happens if the highlight_id does not exist, which is the remaining gap for a mutation tool.

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 sentences, front-loaded with the edit operation and then the invariants, with zero filler. The last sentence about list_highlights is useful enough to earn its place but sits slightly apart from the rest.

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?

No output schema exists, and the description compensates by pointing at list_highlights for verification and by stating exactly which fields change and which are preserved. Missing only edge-case behavior (nonexistent ID, invalid color format) for full completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and each parameter already documents the empty-string-removes and omit-to-keep semantics. The description's sentence about empty note/color repeats that schema text rather than adding new meaning, so the baseline 3 applies.

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 ('Edits a highlight: its note and/or its color') and immediately bounds the scope by declaring what is never touched (quoted text, offsets, parent item). That scoping distinguishes it from delete_highlight, create_highlight and update_item without needing to open the schema.

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?

Explicitly routes read-back to list_highlights, which is the natural confusion point for an edit tool. It stops short of naming when to prefer delete_highlight over setting an empty note, or whether bulk_update should be used for multiple highlights, so it gives clear context but no exclusions.

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.