Skip to main content
Glama

record_experience

Attach effort, outcome, dead ends, and breakthroughs to a stored memory so hard-won successes rank higher and abandoned approaches resurface as warnings in later sessions.

Instructions

Record effort, outcome, dead ends, and breakthroughs for a memory. High-effort successes surface more; abandoned approaches come back as a warning when a later session proposes one of them.

Args:
    key: Memory key to attach experience to.
    effort_score: 1-5 (1=trivial, 3=moderate, 5=battle-hardened).
    outcome: 'succeeded', 'pivoted', or 'abandoned'.
    iterations: Number of attempts.
    abandoned_approaches: List of dicts with 'name', 'type', 'reason'.
    breakthrough: What finally worked, on this occasion.
    gotchas: Caveats to watch for.
    lesson: The generalisable claim this work taught, if there is one:
        a rule that holds beyond this incident, e.g. "a test fake must
        reproduce the real server's divergent behaviour, not its docs".
        Leave it out when nothing transfers. Skill compilation prefers
        it over the breakthrough.

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": {
      "key": "<key>",
      "effort_score": "<effort_score>",
      "outcome": "<outcome>"
    },
    "name": "record_experience"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
lessonNo
gotchasNo
outcomeYes
iterationsNo
breakthroughNo
effort_scoreYes
abandoned_approachesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv7.1.7

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose non-obvious downstream behavior: high-effort successes surface more, abandoned approaches resurface as warnings against later duplicate proposals, and lesson outranks breakthrough in skill compilation. What it omits is write semantics — whether re-recording the same key overwrites, merges, or errors, and whether any permissions are needed.

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?

Effect is front-loaded in the first two sentences, then a clean Args block maps one-to-one to the eight parameters. The lesson entry runs long relative to the others and repeats the example plus the ranking note, but that verbosity is where the hardest-to-guess parameter is disambiguated.

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 an eight-parameter mutation tool with no annotations and no output schema, the description covers every parameter and the key downstream consequences. The remaining gap is behavioral rather than parametric: nothing says what a call returns or what happens on a duplicate key, which matters when the schema requires key as an identifier.

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 schema description coverage at 0% and no enums declared in the schema, the description is the only source of parameter meaning, and it supplies all of it: the 1-5 effort scale anchored with concrete values, the three legal outcome values, the dict shape for abandoned_approaches ('name', 'type', 'reason'), and an example clarifying what counts as a lesson.

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

Purpose4/5

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

The opening sentence gives a concrete verb+resource ('Record effort, outcome, dead ends, and breakthroughs for a memory') and immediately follows with the downstream effect, so the agent knows this is an experience-capture tool scoped to a memory key. It does not name or contrast a sibling (e.g. log_abandoned, experience_summary), which keeps it short of a 5.

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

Usage Guidelines3/5

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

There is meaningful parameter-level guidance — 'Leave it out when nothing transfers' for lesson, and the note that skill compilation prefers lesson over breakthrough — but no statement of when to reach for this tool versus recording an abandoned approach elsewhere or summarizing experience. Usage is implied (after a work session) rather than stated.

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