Skip to main content
Glama

List Highlights

list_highlights
Read-onlyIdempotent

Lists the highlights of one saved item, ordered by their position in the text. Each highlight carries the quoted text, its character offsets in content_text, an optional note and color. Use get_item to fetch the content the offsets refer to.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax highlights to return (at most 100).
offsetNoPagination offset.
item_idYesThe library item ID to list highlights of.

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 already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds value beyond that by disclosing return ordering (position in text) and the payload fields (quoted text, character offsets, optional note and color), which is exactly what an agent needs to plan a call. It does not mention pagination limits or behavior when an item has zero highlights.

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, front-loaded with the core action and scope, then the return shape, then the follow-up pointer. No redundant restatement of the title or the annotations.

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?

With no output schema, the description correctly takes on the burden of describing what a highlight contains, and annotations cover safety. What remains thin is pagination behavior and the empty-result case, though limit/offset are described in the schema.

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 coverage is 100%, so item_id, limit, and offset are already fully documented with types, defaults, and bounds. The description adds only the contextual detail that the character offsets refer into content_text; it says nothing new about limit or offset semantics. Baseline 3 applies when the schema does the heavy lifting.

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 ('Lists the highlights of one saved item') and adds scope ('one saved item') plus ordering semantics ('ordered by their position in the text'). This cleanly separates it from create_highlight/delete_highlight and from item-level siblings like list_items.

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?

The scoping phrase 'of one saved item' implies the precondition (you need an item_id) and the explicit pointer 'Use get_item to fetch the content the offsets refer to' routes the agent to the necessary follow-up call. There are no explicit exclusions or named alternatives among the other list_* tools, but the context is clear.

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.