Skip to main content
Glama

read_diary

Read-only

Retrieve diary entries for a specific day, ISO week, or the last two days to revisit past events, or trace a memory back to its original source.

Instructions

Revisit your diary when the person asks what happened on a specific day or during a recent stretch of time ('that day', 'last week', 'back then', '那天', '上周', '那阵子'). Pass date for a single day or week for an ISO week, or leave both blank for today and yesterday. Diary entries are reflective impressions written overnight rather than verified facts, so double-check specifics with recall when needed. Pass memory_id instead to inspect where a memory came from (its original messages while retained, or the diary for that day/week). Read-only. Returns { data } (null if empty).

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": "read_diary"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD for one day. Days already rolled into a week return that week.
weekNoISO week label for a week, e.g. 2026-W29.
memory_idNoA memory id from recall or list_memories. Returns its source trail instead of a day's diary.
namespaceNoMemory space to use. Defaults to 'default'. Ignored when the API key is bound to a fixed namespace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • changedInput schema / properties / memory_id / description
      Previous value: -"A memory id from recall or list_memories. Returns where it came from instead of a day's diary."New value: +"A memory id from recall or list_memories. Returns its source trail instead of a day's diary."
  2. Addedv2.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the bar is lower, yet the description adds real behavioral context: entries are overnight reflective impressions rather than verified facts, provenance lookups behave differently depending on whether original messages are retained, and the return is { data } with null when empty. 'Read-only' merely echoes the annotation but does not contradict it.

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?

Front-loaded with the trigger condition before the parameter mechanics, and every sentence carries information (modes, caveat, return shape). It runs slightly long because of the multilingual trigger list and a redundant 'Read-only' clause already covered by annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 still discloses the return envelope and its empty case, covers all four parameters including the namespace-relevant behavior, and warns about data reliability. An agent has everything needed to choose the tool and construct the call.

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 coverage is 100%, so the baseline is 3, but the description adds semantics the schema does not state: leaving both date and week blank yields today and yesterday, and memory_id swaps the whole mode of the call rather than filtering it. It does not restate format syntax that the schema already carries.

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 ('Revisit your diary') and immediately scopes it to a temporal-recall situation. It distinguishes itself from the memory-oriented siblings by directing fact-checking to recall, so an agent can tell read_diary apart from recall/list_memories without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit triggers with concrete phrases ('that day', 'last week', 'back then', plus Chinese equivalents), then specifies the three invocation modes: date for one day, week for an ISO week, both blank for today+yesterday, or memory_id to trace provenance. It also names the alternative tool (recall) and the condition that selects it.

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