Skip to main content
Glama

working_memory_get

Retrieve a transient entry by key for the current project; returns null if missing or expired without modifying it or extending TTL. Use when the key is known.

Instructions

Retrieve a single transient entry by key for the current project. Returns null if the key does not exist or has expired, does not throw. Does not modify the entry or extend its TTL. Use working_memory_list when the key is unknown or to audit all active entries.

Input Schema

NameRequiredDescriptionDefault
keyYesKey of the entry to retrieve.
project_pathNoAbsolute path to the project root. Defaults to current working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.17
  2. Removed
  3. Addedv1.1.13
  4. Removedv1.1.12
  5. Addedv1.0.7

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it discloses the missing-key/expired-key return value (null), states it does not throw, and asserts no mutation or TTL extension. Those are exactly the idempotency and side-effect facts an agent needs before calling a read tool repeatedly.

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 short sentences, front-loaded with the core action, then the return contract, then the alternative. Nothing repeats the name or the schema and no sentence is filler.

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?

No output schema exists, and the description compensates by specifying the return value and its null case. Combined with the 100%-covered input schema, an agent has everything needed to call this correctly.

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 both parameters are already documented and the baseline is 3. "By key for the current project" loosely hints at project_path scoping but adds no syntax or format detail beyond the schema.

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?

States a specific verb and resource ("Retrieve a single transient entry by key") plus the scoping constraint ("for the current project"), which separates it cleanly from working_memory_list and working_memory_set in the sibling list.

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?

Explicitly names the alternative and the selecting condition: "Use working_memory_list when the key is unknown or to audit all active entries." That is a direct when-to-use-this-instead rule, not an inference.

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