Skip to main content
Glama

store_session_context

Persist session context with key-value pairs, metadata, and idempotency keys for safe retries. Retrieve stored context later to maintain continuity across interactions.

Instructions

Store session context for later retrieval

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoContext key identifier
valueNoContext value (JSON string for complex data)
metadataNoOptional metadata
session_idYesUnique session identifier
context_keyNoAlias for 'key' (tool compatibility)
context_typeNoType of context (conversation, workflow, preference, project)
context_valueNoAlias for 'value' (tool compatibility)
idempotency_keyNoOptional idempotency key for safe retries
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does not mention overwrite behavior, idempotency semantics, handling of alias parameters, or what happens on duplicate session_id/key combinations. The idempotency_key in the schema hints at retry safety, but the description omits this context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that front-loads the core action ('Store session context') and its purpose ('for later retrieval'). No wasted words or redundant filler.

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?

Despite a rich schema and many sibling tools, the description is minimal and does not explain return behavior, idempotency, or how this tool relates to similar store/update tools. It is adequate for a basic store action but lacks context for an agent to confidently select it among many alternatives.

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?

All 8 parameters have schema descriptions with 100% coverage, so the baseline for parameter semantics is 3. The description adds no extra meaning beyond the schema, but the schema itself adequately explains each parameter's purpose.

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?

The description clearly states a specific verb and resource: 'Store session context for later retrieval.' It distinguishes this tool from siblings like retrieve_session_context and update_session_context by focusing on storing for future use, making the purpose unambiguous.

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?

No guidance is provided on when to use this tool versus alternatives such as store_contexts_batch, store_interaction, or update_session_context. The phrase 'for later retrieval' implies a use case but offers no explicit when-to-use or when-not-to-use information.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lovellfelix/session-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server