Skip to main content
Glama

Working Memory: Get

getWorkingMemory
Read-only

Retrieve the current state for a (kind, key) in the current session. Returns null if not set. Use this when you need to merge into existing state or verify what's stored. NOTE: Active working memory entries are ALSO automatically injected into the system prompt by Build Messages — you usually don't need to call this manually. Only call when you need a specific record's full state on-demand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesLogical identifier within the kind (same key used in setWorkingMemory).
kindYesWhich kind of state to retrieve: wizard | working_set | pinned_entity.
session_idYesThe current chat session_id. REQUIRED.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description builds on that by disclosing the null return value, session scoping, and the important automatic injection behavior. It clearly explains what the tool does and when its output may be redundant, going beyond the annotation's minimal safety signal.

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?

Three sentences carry exactly the necessary information: the operation and return behavior, the intended use case, and the critical auto-injection caveat. No filler, no repetition of schema fields.

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

Completeness5/5

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

For a simple read-only getter with full schema coverage, the description is complete. It addresses the return value, session scope, when to call it, and when not to call it. No output schema is needed for this tool, and all necessary behavioral context is present.

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 parameters are already well-documented. The description adds context about the purpose of (kind, key) in relation to existing state and the same key used in setWorkingMemory, but it does not materially extend the schema's per-parameter semantics. Baseline 3 is appropriate.

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 states a specific verb+resource: 'Retrieve the current state for a (kind, key) in the current session.' It clearly distinguishes this get-by-key operation from sibling tools like listMemories, countMemories, and searchMemory, and adds the key behavior of returning null if unset.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance: 'Use this when you need to merge into existing state or verify what's stored.' It also provides a strong when-not-to-use note: active entries are auto-injected into the system prompt by Build Messages, so manual calls are usually unnecessary and should only happen for on-demand full state.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a distinct resource/action combination. The potentially overlapping countMemories and getChapterOverview are explicitly differentiated, and listMemories vs searchMemory clearly separates browsing from semantic search.

Naming Consistency5/5

All tool names follow a consistent camelCase verb_noun pattern: count*, get*, list*, search*. Even compound names like getCampaignLeadFields and getChapterOverview fit the convention cleanly.

Tool Count4/5

At 15 tools, the server is at the upper edge of a reasonable scope. Most tools earn their place, but countMemories and getChapterOverview overlap somewhat, and getWorkingMemory is described as usually unnecessary due to automatic injection.

Completeness3/5

The read/query side is well covered across memories, campaigns, leads, documents, reminders, and team. However, listDeleted mentions restorable memories but no restore tool exists, and there are no create/update/delete operations for campaigns, documents, or reminders, leaving notable lifecycle gaps.