Skip to main content
Glama

Create Highlight

create_highlight
Idempotent

Highlights a passage of a saved item: stores the quoted text and the character offsets it covers inside the item's content_text. Use it to mark the parts of an article worth re-reading. Use list_highlights to read the highlights of an item back and delete_highlight to remove one.

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": {
      "item_id": "<item_id>",
      "text": "<text>"
    },
    "name": "create_highlight"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional note about the highlight.
textYesThe quoted passage.
colorNoOptional color, e.g. #ffd60a.
item_idYesThe library item ID the highlight belongs to.
end_offsetNoOffset just past the last character of the passage. Defaults to start_offset plus the length of text.
start_offsetNoFirst character offset of the passage inside content_text. Defaults to 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare this is a non-read-only, non-destructive, idempotent write; the description adds real context by explaining that the offsets are computed relative to content_text and stored alongside the quote. It does not, however, explain the consequence of idempotentHint=true (e.g. whether a duplicate highlight returns the existing record), which is the one behavioral gap.

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: what it does first, why you'd use it second, sibling routing last. Nothing is redundant and the key mechanic (stored text plus offsets) is front-loaded.

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 six-parameter creation tool with no output schema, the description covers purpose, storage semantics, and sibling navigation adequately, with the schema carrying the parameter detail. The unaddressed idempotency semantics are the only meaningful omission.

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%, so every parameter including the end_offset default rule is already documented in the schema. The description only reinforces that offsets are relative to the item's content_text; it adds no per-parameter meaning beyond that, so 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 ('Highlights a passage of a saved item') and clarifies exactly what is persisted: the quoted text plus the character offsets inside the item's content_text. That level of detail distinguishes it cleanly from update_highlight and from the read/delete highlight siblings.

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?

Names the positive use case ('mark the parts of an article worth re-reading') and explicitly routes to list_highlights for reading back and delete_highlight for removal. It stops short of saying when to prefer create_highlight over update_highlight, or what happens when the same passage is highlighted twice.

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.