Skip to main content
Glama
event4u-app

@event4u/agent-config

Official

chat_history_read

Read-only

Recover context from earlier sessions by reading the project's chat history for notes, decisions, and phase markers. Filter by session, entry type, or recency to retrieve specific entries.

Instructions

Read recent entries back from the consumer project's chat-history JSONL (agents/runtime/.agent-chat-history; agents/.agent-chat-history accepted for back-compat). Use to recover context from an earlier session — decisions, notes, phase markers — at the start of a new task. Read-only. Returns the resolved file path plus a list of matching entries (newest last). Combine session, last, and entry_type to narrow the result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lastNoReturn only the most recent N entries, after other filters apply.
pathNoOptional history-file path override; defaults to the standard chat-history location under the project root.
aroundNoTimeline anchor: return the entries around this ref (from a detail:"index" row) instead of the filtered list — depth_before/depth_after neighbours plus the anchor. Refs are within-file ordinals; rotation invalidates them.
detailNo'index' returns compact rows (ref, t tag, ~100-char preview, tokens_estimate) instead of full entries — scan first, then re-read the refs you need via `around` or a narrowed filter. History entries are large, so index mode pays off here. 'full' (default) returns complete entries.full
sessionNoFilter to a single 16-char session id.
entry_typeNoFilter by the `t` tag (e.g. note, decision, phase).
depth_afterNoNeighbours after the anchor (with `around`). Defaults to 3.
depth_beforeNoNeighbours before the anchor (with `around`). Defaults to 3.
Behavior5/5

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

Beyond the readOnlyHint annotation, it adds valuable context: returns the resolved file path plus matching entries (newest last), describes path resolution with back-compat, warns that rotation invalidates refs, and notes that history entries are large so 'index' mode is helpful. These details give the agent a clear behavioral model.

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?

The description is concise at four sentences, each serving a distinct purpose: what it reads, when to use it, return shape, and filter guidance. No redundant text or filler.

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 tool with 8 optional parameters and no output schema, the description covers the core aspects: purpose, file location, filtering hints, and return format. It lacks explicit mention of error conditions or edge cases, but the schema and rich parameter descriptions fill the gap reasonably.

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. The description adds a useful tip about combining 'session', 'last', and 'entry_type' filters, but it doesn't further explain each parameter or add semantics beyond what the schema already provides.

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 uses the specific verb 'Read' with a concrete resource ('chat-history JSONL') and gives exact paths, making the tool's function unambiguous. It differentiates from sibling 'chat_history_append' by emphasizing read-only access and mentions return contents (entries, resolved path).

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 clearly states the intended use case: recovering context from earlier sessions at the start of a new task. It also advises combining filters to narrow results, but it doesn't explicitly mention when not to use it or name alternative tools (e.g., memory_get) for different context sources.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/event4u-app/agent-config'

If you have feedback or need assistance with the MCP directory API, please join our Discord server