Skip to main content
Glama

log_conversation

Idempotent

Persist ordered user and assistant turns to Aelios memory before a chat ends to prevent losing meaningful threads. Call as the chat winds down or every ~20 exchanges.

Instructions

Send this conversation to tonight's diary and memory pass so meaningful threads are not lost when the chat ends. Clients that talk to models directly (like the Claude or ChatGPT apps) do not record chats for Aelios on their own, so calling this as the chat winds down — and every ~20 exchanges in a long conversation — keeps continuity alive. Send user and assistant turns in order, trimmed of large code blocks or pasted documents; lines already saved are skipped when you pass back conversation_id. Skip this if Aelios is already injecting memories automatically every turn via the gateway. For anything important right now, call remember directly. Returns { data: { conversation_id, saved, skipped, message_ids } }.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "messages": "<messages>"
    },
    "name": "log_conversation"
  }
}

Input Schema

NameRequiredDescriptionDefault
messagesYesThe person's and your messages, oldest first.
namespaceNoMemory space to use. Defaults to 'default'. Ignored when the API key is bound to a fixed namespace.
conversation_idNoThe conversation_id returned by your first call in this conversation. Leave it out the first time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses that saved lines are skipped when `conversation_id` is passed back, that this is a deferred 'tonight's' batch rather than an immediate write, and the exact return payload shape. The dedup mechanic is the key behavior an agent could not infer from the schema or annotations.

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?

Purpose is front-loaded in the first clause, followed by timing, content-shaping advice, an exclusion, an alternative, and the return shape. Dense and mostly earned, though the parenthetical app examples and the explicit return-structure sentence make it longer than strictly necessary.

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 3-parameter write tool with no output schema, the description covers invocation timing, content trimming, dedup via `conversation_id`, the automatic-injection exclusion, a fallback sibling, and the return shape. Nothing an agent needs to call it correctly is missing.

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 real meaning: turns must be sent in order, should be trimmed of large code blocks and pasted documents, and `conversation_id` controls skip-already-saved behavior. It does not cover the `namespace` parameter's default or fixed-namespace override, which the schema handles on its own.

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 action (send the conversation to the diary/memory pass) with its purpose (preserve continuity when the chat ends), and explicitly routes 'anything important right now' to the sibling tool `remember`. An agent can distinguish this deferred end-of-chat logging from an immediate write without opening any 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 (as the chat winds down, and roughly every ~20 exchanges in a long conversation), an explicit exclusion (skip if Aelios is already injecting memories every turn via the gateway), and a named alternative (`remember`). Both when-to-use and when-not-to-use are covered.

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