Skip to main content
Glama

memoire_reinforce

Reinforce a stored memory based on actual use by passing the agent output and whether the task succeeded, so trust scores reflect lessons that truly helped.

Instructions

Conditionally reinforce a memory based on actual use.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "memory_id": "<memory_id>",
      "agent_output": "<agent_output>",
      "task_succeeded": "<task_succeeded>"
    },
    "name": "memoire_reinforce"
  }
}

Input Schema

NameRequiredDescriptionDefault
memory_idYes
namespaceNodefault
agent_outputYes
task_succeededYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.2/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full disclosure burden and does not meet it. It never says what reinforcement actually changes (weight? confidence? retrieval rank?), whether it is idempotent, whether it can be undone, or what state is required.

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

Conciseness3/5

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

A single front-loaded sentence with no wasted words, but the brevity comes at the cost of substance rather than being efficient. It is under-specified rather than crisp.

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?

For a four-parameter mutation tool with no annotations, no output schema, and zero schema coverage, the definition does far too little. An agent cannot tell what happens on success or failure, how reinforcement differs from penalization, or how namespace scoping affects the write.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for four parameters, so all semantic weight falls on the description. 'Based on actual use' only loosely gestures at agent_output and task_succeeded, and it says nothing about memory_id or namespace (scoping, required vs default), leaving real ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (reinforce) and resource (memory), and 'based on actual use' hints at outcome-driven gating. But 'conditionally' is left undefined — the description never says what the condition is (presumably task_succeeded), and it does not distinguish this from siblings like memoire_penalize or memoire_batch_feedback.

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 when-to-use guidance, no prerequisites, and no mention of the obvious alternative (memoire_penalize for the negative case or batch_feedback for bulk updates). The agent must infer that this should be called after a task outcome is known.

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