Skip to main content
Glama

Record how a memory turned out

record_outcome
Destructive

Record how a previously saved memory turned out (for example a tentative fix is later confirmed working), or mark it superseded when a later memory replaces what it said. Changes the outcome of one existing note.

Args: episode_id: the id returned when the memory was saved (by remember). result: "success", "failure" or "superseded". "superseded" marks a note as stale rather than wrong, for example when a later memory corrects it: recall()'s ranking then suppresses it so it cannot outrank what replaced it. delta: optional adjustment to this memory's ranking weight. resolved: optional free-text note on how it was resolved. Ignored when result is "superseded". device_id: the named memory the note lives in, if not the account's default one. expected_prior_result: optional compare-and-swap guard: "pending" closes the note only if nothing has resolved it since it was read. If another caller got there first, the call fails with outcome_conflict and the current value, instead of overwriting it.

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": {
      "episode_id": "<episode_id>",
      "result": "<result>"
    },
    "name": "record_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
deltaNo
resultYes
resolvedNo
device_idNo
episode_idYes
expected_prior_resultNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description is consistent with them while adding real context: the ranking-suppression side effect of 'superseded', that 'resolved' is ignored in that case, and a documented failure mode ('outcome_conflict' returning the current value). The one gap is that it never says whether prior outcome data is lost or recoverable on a normal overwrite, which matters for a destructive-hinted tool.

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?

Front-loaded opening sentence states purpose and effect before the per-argument block, and each argument line carries distinct information. Some lines are wordier than needed — 'the named memory the note lives in' is loose phrasing for a device identifier — but nothing is padding.

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 6-parameter destructive mutation with an output schema already covering return shape, the description supplies everything else an agent needs: purpose, value semantics, default behavior, and the concurrency-conflict path. No material gap remains.

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

Parameters5/5

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

With 0% schema description coverage across 6 parameters, the description must carry the full burden and does: it documents the provenance of episode_id, enumerates the legal result values (none of which the schema constrains as an enum), explains delta's effect on ranking weight, resolved's free-text purpose and its superseded exception, device_id's default-device fallback, and the compare-and-swap semantics of expected_prior_result including its conflict behavior.

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 ('record how a previously saved memory turned out') and immediately scopes it to mutation of one existing note ('Changes the outcome of one existing note'), which cleanly separates it from remember (creation) and recall (read/ranking) among the siblings. An agent can identify the operation 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?

Gives concrete when-to-use triggers ('a tentative fix is later confirmed working') and explains the key branch decision between result values, notably that 'superseded' means stale rather than wrong and applies when a later memory corrects it. It does not explicitly name a sibling to avoid or state when not to call it, which keeps this below a 5.

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.