Skip to main content
Glama

thread_memory

Store and retrieve conversation thread context by adding messages, reading recent history, searching past exchanges, or compressing older messages into a digest.

Instructions

Thread memory: add a message, read recent context, search the thread, or compress older messages into a digest.

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": {
      "action": "<action>"
    },
    "name": "thread_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepNo
roleNouser
textNoMessage text (add)
queryNoWhat to look for (ask)
topicNo
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It names a mutation-like add operation and a compression digest operation, but does not explain permissions, reversibility, whether older messages are retained, or side effects of any action.

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 a single front-loaded sentence with no wasted wording. It is appropriately concise, though for a multi-action tool a slightly more structured breakdown would improve scanability.

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

Completeness2/5

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

This is a relatively complex tool with four actions, six parameters, no annotations, no output schema, and low schema description coverage. The description lists the modes but omits action-specific parameter behavior, mutation/compression consequences, and return behavior.

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 coverage is only 33%, and the description does not compensate by explaining parameters such as keep, role, or topic. It loosely implies text for add and query for ask, but does not map the action enum to the remaining parameters or clarify defaults and constraints.

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?

The description names the resource (thread memory) and four specific operations: add a message, read recent context, search the thread, and compress older messages. It is clear what the tool does, but it does not explicitly distinguish itself from siblings such as memory_add or memory_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Listing the four action modes implies when each might be used, especially contrast between reading recent context and searching the thread. However, it gives no explicit when-to-use guidance, exclusions, or comparison with sibling memory tools.

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