Skip to main content
Glama

write_episode

Record episodic memories such as situations, preferences, relationships, and plans with related entities and salience so they can be retrieved later. Use it for time-bound facts, not documents.

Instructions

Record something that happened or something the user stated, in an episodic vault. Use this for facts with a lifetime — situations, preferences, relationships, plans — rather than for documents. Give the entities it is about so it can be looked up later, and a salience between 0 and 1 for how much it matters.

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": {
      "vault_name": "<vault_name>",
      "content": "<content>"
    },
    "name": "write_episode"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNo
contentYes
entitiesNo
salienceNo
confidenceNo
valid_fromNo
vault_nameYes
occurred_atNo

Output Schema

NameRequiredDescriptionDefault
episodeYes
vault_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.10.0
    • addedOutput schema / $defs / Episode / properties / reopen_reason
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Reopen Reason"
      +}
    • addedOutput schema / $defs / Episode / properties / reopened_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Reopened At"
      +}
  2. First observedv0.9.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it discloses that entities enable later lookup and that salience is a 0-1 importance weight. It does not say whether writes are deduplicated, how a new episode interacts with an existing one the vault already holds (the confirm/supersede/dispute siblings suggest conflict handling exists), or what permissions the vault requires.

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?

Three front-loaded sentences with no filler: the action, the routing rule, then the practical instructions for entities and salience. Slightly dense with multiple ideas per sentence, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema is present so return values need no explanation, and the core write semantics are covered. For an 8-parameter, annotation-free mutation tool, however, the absence of any guidance on the temporal and confidence fields leaves an agent guessing at call-correctness for half the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 8 parameters, and the description adds meaning for only content, entities, and salience (including its 0-1 range). The temporal and provenance fields — occurred_at, valid_from, confidence, source — plus the required vault_name are left entirely opaque, and the likely-important distinction between occurred_at and valid_from is undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Record ... in an episodic vault') and defines the content type it targets: facts with a lifetime such as situations, preferences, relationships, and plans. It implicitly separates itself from write_doc by saying 'rather than for documents', letting an agent route between them without opening both schemas.

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?

Gives clear inclusion criteria (lifetime facts) and one exclusion (documents), which is a real when-to-use rule. It says nothing about the surrounding lifecycle siblings such as confirm_episode, revise_episode, supersede_episode, or query_episodes, so an agent gets no guidance on what to do after writing or when to prefer those instead.

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