Skip to main content
Glama

Reading History

reading_history
Read-onlyIdempotent

Returns reading history with date filtering. Uses created_at (saved) and item_opens (opened) tables. Answers 'what did I read about X last month'. Supports filtering by event type (saved/opened), date range (UTC; date-only and zoneless values are UTC, pass offset like -08:00 for local days), query, and tag. For simple recent items, use list_items instead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "reading_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoFilter by tag.
eventNoEvent type to filter by.all
limitNoMax results to return.
queryNoOptional search query over history.
sinceNoISO datetime (inclusive): start of date range. saved_at is UTC; date-only (YYYY-MM-DD) and zoneless values are read as UTC (date-only starts at 00:00:00 UTC). Callers should pass an offset (e.g. -08:00) for local days.
untilNoISO datetime (inclusive): end of date range. saved_at is UTC; date-only (YYYY-MM-DD) and zoneless values are read as UTC (date-only covers through 23:59:59 UTC). Callers should pass an offset (e.g. -08:00) for local days.
cursorNoOpaque cursor for pagination.
fieldsNoProjection: fields to include in response.
offsetNoPagination offset.
tags_allNoOnly items carrying ALL of these tags. Child tags linked via parent count ('/' is disallowed in tag names).
tags_anyNoOnly items carrying ANY of these tags. Child tags linked via parent count ('/' is disallowed in tag names).
untaggedNoOnly items without any tag.
tags_noneNoExclude items carrying any of these tags. Child tags linked via parent count ('/' is disallowed in tag names).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / tags_all / description
      Previous value: -"Only items carrying ALL of these tags. Child tags count: 'work' also matches 'work/research'."New value: +"Only items carrying ALL of these tags. Child tags linked via parent count ('/' is disallowed in tag names)."
    • changedInput schema / properties / tags_any / description
      Previous value: -"Only items carrying ANY of these tags. Child tags count: 'work' also matches 'work/research'."New value: +"Only items carrying ANY of these tags. Child tags linked via parent count ('/' is disallowed in tag names)."
    • changedInput schema / properties / tags_none / description
      Previous value: -"Exclude items carrying any of these tags. Child tags count."New value: +"Exclude items carrying any of these tags. Child tags linked via parent count ('/' is disallowed in tag names)."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, so the description's main contribution is the backend model: saved events come from created_at, opened events from item_opens. It also flags UTC handling and the offset requirement for local days, which is real behavioral guidance an agent would otherwise get wrong. It does not address pagination behavior or result ordering, keeping it short of a 5.

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?

Roughly five tight sentences, front-loaded with the purpose and ending with the sibling redirect. The UTC/offset clause is dense but earns its place; a couple of phrases duplicate the schema description of since/until rather than adding new information.

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 13-parameter, no-required-parameter, read-only query tool, the description covers purpose, data sources, filtering dimensions, and the sibling alternative, which is sufficient given the 100% schema coverage. Silent on the 'highlighted' event type and on how cursor/offset/limit pagination behave — acceptable gaps since the schema documents those parameters, but the absence of an output schema means return shape stays somewhat implicit.

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 the baseline is 3 and the schema already documents the UTC/offset semantics almost verbatim. The description adds the event-to-table mapping, which helps interpretation, but it names only 'saved/opened' while the enum also includes 'highlighted' and 'all' — a small mismatch that leaves the enum's full meaning 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?

The description opens with a specific verb+resource ('Returns reading history'), states the underlying data sources ('created_at' for saved, 'item_opens' for opened), and explicitly routes a simpler case to the sibling list_items. An agent can distinguish this from list_items and related_items 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete use-case framing ('what did I read about X last month') plus an explicit alternative: use list_items for simple recent items. The exclusion is stated, though the boundary ('simple recent items') is a bit loose and no other alternatives (e.g. read_item for full content) are mentioned.

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.