Skip to main content
Glama

Dream Audit Log

graph_audit

Log dream process events — including entity resolution, edge changes, and merge flags — to enable later reconstruction of merge decisions.

Instructions

Append a structured event to the dream process audit log (logs/dream-audit.jsonl). Call this during the dream process to record run_start, run_end, transcript_start, transcript_end, entity_created, entity_resolved, edge_created, edge_modified, merge_flagged, contradiction_found, ingest_start, ingest_end, decay_applied, format_warning, or error events. entity_resolved is the audit trail for entity-resolution decisions during dream — every time the dream picks between matching an existing entity, creating a new one, or flagging an ambiguous candidate, log it here so a later graph_unmerge can reconstruct why a merge happened.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventYesEvent type
dataYesEvent payload — fields vary by event type. Always include relevant names/IDs.
Behavior3/5

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

With no annotations, the description must fully convey behavior. It discloses that the tool appends to a log file (destructive in that it appends, but not destructive in a harmful sense). It does not mention permissions or rate limits, but the behavior is simple appending without other side effects.

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?

The description is concise but includes a complete list of event types, which might be redundant with the schema enum. However, it provides helpful context for each event type without being overly verbose.

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?

The description covers the tool's purpose, usage context, and event types, and even connects it to the graph_unmerge tool for traceability. No output schema exists, but the description adequately explains the return behavior (just appending).

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?

Although the schema covers 100% of parameters, the description adds value by explaining the 'entity_resolved' event's significance for reconstructing merges and advising to 'Always include relevant names/IDs' for the data payload. This enriches the schema definitions.

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 a structured event to the dream process audit log'. It specifies the exact resource (logs/dream-audit.jsonl) and provides a comprehensive list of event types, distinguishing it from sibling tools like graph_merge or graph_unmerge.

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 instructs when to use the tool: 'Call this during the dream process'. It also explains the specific events to log, including a detailed purpose for 'entity_resolved'. However, it lacks explicit guidance on when not to use it or comparisons to alternative tools.

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/stevepridemore/graph-memory'

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