Skip to main content
Glama
event4u-app

@event4u/agent-config

Official

chat_history_append

Append a structured entry to the project's chat-history log to record decisions, notes, or phase markers that persist across sessions.

Instructions

Append one structured entry to the consumer project's chat-history log (a JSONL file). Use to record a decision, note, or phase marker that should persist into a later session or be distilled by mine_session. Writes to the filesystem (agents/runtime/.agent-chat-history by default; agents/.agent-chat-history and .agent-chat-history accepted for back-compat) and returns the written entry plus its resolved target path. Path-scoped: a path outside the allowlist, or any traversal escaping the project root, raises an error before writing. Set dry_run: true to preview the entry and target path without touching disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoOptional path override. Must resolve to `agents/runtime/.agent-chat-history` (current default), `agents/.agent-chat-history`, or `.agent-chat-history` under consumer_root.
textYesThe entry body to record.
dry_runNoWhen true, return the entry and resolved target path without writing to disk.
sessionNoOptional 16-char session id to group the entry under. Defaults to the current session.
entry_typeNoShort ``t`` tag categorising the entry (e.g. note, decision, phase). Defaults to ``note``.
min_schema_versionNoRefuse to write if the on-disk history schema is older than this version.
Behavior5/5

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

With only readOnlyHint: false, annotations are minimal. The description fully discloses the write behavior, filesystem target, return value ('returns the written entry plus its resolved target path'), safety validation ('path outside the allowlist... raises an error before writing'), and the dry_run side-effect-free preview. This goes well beyond what annotations provide.

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 four sentences, front-loaded with the primary action, then usage context, then safety/behavior specifics. Every sentence adds critical information: what it does, when to use it, the write behavior and safety, and the dry_run escape hatch. No wasted words.

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?

For a 6-parameter write tool with no output schema and minimal annotations, this description is remarkably complete. It covers the target file locations, the return payload, path restrictions, dry_run behavior, and downstream consumers. An agent can confidently select and invoke this tool without further clarification.

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 description coverage is 100%, so baseline is 3. The description adds meaningful behavioral semantics for the 'path' parameter (allowlist and traversal checks) and clarifies dry_run's purpose. It also explains the entry body ('text') in the context of a JSONL log, enhancing understanding beyond the schema's bare field descriptions.

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 clearly states the tool's purpose: 'Append one structured entry to the consumer project's chat-history log (a JSONL file).' This is a specific verb+resource that distinguishes it from siblings like chat_history_read, which retrieves the log, and other memory tools that operate on different stores.

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 description explicitly says 'Use to record a decision, note, or phase marker that should persist into a later session or be distilled by `mine_session`.' This gives clear context for when to use the tool. It also notes back-compat paths and the dry_run option, but it does not explicitly state when not to use it (e.g., for ephemeral or non-history data), so it falls short of a 5.

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