Skip to main content
Glama

Session State

memory-session

Manage session state in hot RAM by showing, setting, or clearing tasks, context, decisions, and actions so AI agents retain current conversation context.

Instructions

Manage session state (hot RAM). Actions: show, task, context, decision, action, clear.

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": "memory-session"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNoValue (required for task/context/decision/action).
actionYesAction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Hot RAM' conveys that state is transient, which is useful, but there is no disclosure of what 'clear' destroys, whether state persists across sessions, or what each action returns.

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?

Two short clauses with no wasted words, and the resource framing is front-loaded before the action inventory. It is terse to the point of under-specification, but nothing is redundant.

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?

For a six-action state-management tool with no annotations and no output schema, the description is too thin. It omits what each action does and what is returned, though the schema and 'hot RAM' framing cover enough that an agent can partially infer usage.

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

Parameters3/5

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

Schema description coverage is 100%, so the enum and the value parameter are already documented in the schema. The description merely restates the six action names without adding meaning such as what each action writes or how value is interpreted per action, so the baseline of 3 applies.

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

Purpose3/5

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

'Manage session state (hot RAM)' names a verb and resource, and the action list signals the scope of the tool. However, the six action names (task, context, decision, action, clear) are opaque without further explanation, and nothing distinguishes this tool from siblings like memory-scratch-promote or memory-context-pressure.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives, and no preconditions or exclusions. The action list hints at capability but gives no guidance on which action to choose in a given situation.

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