Skip to main content
Glama
@memoryrelay/mcp-server

@memoryrelay/mcp-server

Official
by memoryrelay

session_end

Close an active session and record an optional summary of what was accomplished, so AI agents preserve context and progress across sessions.

Instructions

End an active session with an optional summary of what was accomplished.

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": {
      "id": "<id>"
    },
    "name": "session_end"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSession ID (UUID) to end
summaryNoSummary of what was accomplished during the session

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.1/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 burden and largely fails it: it does not say whether ending is reversible, what happens to session data or memories, whether permissions are needed, or what the call returns on success or failure. For a mutation tool with zero annotation coverage, this is a significant gap.

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?

One front-loaded sentence with no redundant wording; the action is stated first and the optional parameter second. It is efficient, though its brevity reflects under-specification rather than optimal density.

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?

A state-mutating lifecycle tool with no annotations and no output schema needs the description to explain session state preconditions, side effects on stored data, and failure modes. None of that is present, leaving the definition thin relative to what an agent must know before ending a session.

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 coverage is 100%, so both parameters are already fully documented in the input schema. The description only restates that the summary is optional and about 'what was accomplished', adding no format, length, or behavioral detail beyond the schema, which is baseline for this dimension.

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 gives a specific verb and resource: 'End an active session', which an agent can immediately distinguish from session_start or session_list. It stops short of explicitly contrasting with those siblings, but the action and target are unambiguous.

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?

Usage is only implied: the word 'active' hints that a live session must exist first, but there is no explicit guidance on when to call this versus session_start/session_list, and no statement about what happens if the session is already ended or unknown.

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