Skip to main content
Glama
Pseudogiant-xr

PseudoLife-MCP

Official

memory_lesson_search

Read-only

Search learned lessons (procedural memory) by task similarity at the start of a task to recall what worked, what to avoid, and past corrections. Re-verify flagged lessons.

Instructions

Search learned lessons (procedural memory) by similarity to the task at hand. Call at the START of a task: what worked, what to avoid, what the user corrected before. Heed polarity - entries — known dead-ends. A lesson describes the run it came from, not this one: apply it where today's specifics match, or it anchors you on a stale framing — re_verify: true marks one whose subject facts have changed since, so re-derive that one.

Returns: {count, entries: [{task, aspect, lesson, about, polarity, outcome, confidence, score, re_verify, re_verify_reason}]}.

Input Schema

NameRequiredDescriptionDefault
queryYesThe task at hand, described the way it would have been logged.
top_kNoMax entries returned; positive integer.
verboseNoFull provenance metadata; default entries are compact.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.18.1
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / top_k / description
      Previous value: -"Max entries returned."New value: +"Max entries returned; positive integer."
    • addedInput schema / properties / top_k / minimum
      Added value: +1
  2. Changed3 schema fields changedv0.15.0
    • addedInput schema / properties / query / description
      Added value: +"The task at hand, described the way it would have been logged."
    • addedInput schema / properties / top_k / description
      Added value: +"Max entries returned."
    • addedInput schema / properties / verbose / description
      Added value: +"Full provenance metadata; default entries are compact."
  3. First observedv0.11.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, non-idempotent, closed-world), so the description earns credit for adding what annotations cannot: the 'apply where today's specifics match' caveat against stale framing, and the meaning of re_verify as flagging lessons whose subject facts changed. It doesn't discuss scoring, ranking, or rate limits, keeping it at a 4.

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?

Core instruction ('Call at the START of a task') is front-loaded ahead of interpretation guidance, and every sentence carries operational content. The backtick-laden prose is slightly dense and the Returns block is arguably redundant given a real output schema, but there is little true waste.

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

Completeness4/5

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

For a search tool with full schema coverage and an output schema, the description covers timing, result interpretation, polarity semantics, and the re_verify caveat — everything an agent needs to use it correctly. Including the return shape is redundant rather than missing, so completeness is high but not perfect.

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 query/top_k/verbose are already documented in the schema, and the description adds no input-parameter meaning beyond them. The 'Returns' block describes output fields rather than inputs, so baseline 3 applies.

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 ('Search learned lessons (procedural memory) by similarity to the task at hand'), and the '(procedural memory)' qualifier separates it from the general memory_search/memory_recall siblings. An agent can tell what it will get back without opening the schema.

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

Usage Guidelines4/5

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

Explicit timing guidance ('Call at the START of a task') plus concrete usage rules ('Heed polarity - entries — known dead-ends'). It tells the agent when to run it and how to interpret results, though it doesn't name a competing sibling tool for contrast.

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