Skip to main content
Glama

journal_write

Append session wrap-up entries to the cross-window journal, using one entry per topic for multi-topic conversations. Use before ending, switching windows, or compacting context to preserve memory.

Instructions

Append 收尾 entries to the cross-window journal (~/.dsh/memory/journal/). This is the only write path available in 对话模式, so use it whenever a session wraps up, the user says 收尾/换窗口/晚安, or before compacting context. If the window covered several distinct topics, pass them all in ONE call as entries — one item per topic — instead of writing a single summary that swallows the rest. Only writes inside the journal directory and returns the exact files written.

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

Input Schema

NameRequiredDescriptionDefault
cardNo对应专题卡 id,没有就省略。
dateNoYYYY-MM-DD,默认今天。
openNo未决。
timeNoHH:MM,默认现在。
quoteNo关键原话,带 ts。
whereNo聊到哪。
statusNo已结 / 未定 / 在做,默认未定。
talkedNo聊了什么。
windowNo窗口 id,如 dbd7e1ce(会话 id 前 8 位)。省略时自动用当前会话 id 前缀。
entriesNo多条模式:一个窗口聊了几件事就传几条,每条一个话题。每项可覆盖 summary/time/status/card/talked/where/quote/open;window 与 date 取顶层。
summaryNo一句话收尾(≤60 字),单条模式必填。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it declares the write is append-only, confined to the journal directory, and that the return value is the exact files written. It stops short of stating permission requirements or failure behavior, which keeps it from 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?

Front-loaded with the verb and path, then triggers, then the batching rule. Four sentences with little waste, though the multi-topic instruction could be tightened slightly.

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 an 11-parameter mutation tool with no output schema, the description covers the destination, safety scope, triggers, and return shape. Missing only error/permission context, which is minor given full schema coverage.

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 genuine meaning for `entries`: one item per topic, per-item overrides, window/date taken from the top level. That is guidance the schema does not spell out as clearly.

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 (Append) and resource (the cross-window journal), gives the concrete path (~/.dsh/memory/journal/), and distinguishes itself from the read-side sibling by noting it is the only write path in 对话模式.

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?

Supplies concrete invocation triggers (session wrap-up, user says 收尾/换窗口/晚安, before compacting context) and an explicit batching rule — multiple topics go in ONE call as `entries` rather than one merged summary — so the agent knows both when to call and how to shape the call.

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