Skip to main content
Glama

ctxstore — memory that follows you across models

Reinforce Fact (recall-on-success)

reinforce_fact

Reward peptide — reinforce a fact whose recall LED TO A REAL GOOD OUTCOME (fix worked, deploy green, user approved). Boosts its future retrieval ranking with a bounded, time-decaying multiplier (max 1.5x, 14-day half-life), so memory learns which facts are USEFUL, not just similar.

Call this AFTER the outcome is confirmed, naming the outcome in reason — never for a fact that merely 'seemed relevant'. The boost is ranking-only: it can never override tenant isolation, namespace grants, or privacy filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoExact fact key — reinforces the current version. Provide this OR fact_id.
reasonYesREQUIRED. The concrete outcome this recall led to, e.g. 'used this fact to fix #492; deploy went green'. Rewards must trace to real outcomes.
weightNoReward strength 0-3 (default 1). Use ~0.5 for minor wins, 1 for a confirmed success, 2-3 for major verified outcomes.
fact_idNoUUID of the fact to reinforce (from search results). Provide this OR key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.