Skip to main content
Glama

Record outcome

record_outcome
Idempotent

Record a task's success or failure with evidence to finalize it in the Experience Graph, update lessons, and compare paths. Use after tests, builds, research checks, or user confirmation.

Instructions

Record your reported outcome of the most recent task and learn from it. Evidence: stored as agent_reported. A report never counts as verified on its own; a test, lint or build seen passing after the last edit does, and an agreeing report keeps that stronger evidence. Returns: the recorded status plus a plain-language Path check. A better path is only named when comparable completed tasks provide evidence; otherwise the result says that no better option is proven. Use when: the result is confirmed: tests/lint/build passed, research was cross-checked against relevant evidence, the user confirmed the answer, or the task failed/was abandoned. Not for: declaring the strategy (use choose_path). Side effects: finalizes the task in the local Experience Graph and updates its experience, lessons and path comparison; calling it again for the same task replaces the recorded outcome. Touches no project files. Errors: 'No execution to record an outcome for' before any task was planned; a 'not enabled' message until the project is approved.

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": {
      "status": "<status>",
      "evidence": "<evidence>"
    },
    "name": "record_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYes'success' when the result is confirmed (tests/builds passed, research was cross-checked, or the user confirmed it); 'failure' when the task failed or was abandoned.
evidenceYesShort proof of the result, e.g. 'pytest tests/test_auth.py passed' or 'user confirmed the fix'. Secrets are redacted.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.1
    • changedInput schema / properties / evidence / description
      Previous value: -"Short proof of the result, e.g. 'pytest tests/test_auth.py passed' or 'user confirmed the fix'. Up to 500 characters; secrets are redacted."New value: +"Short proof of the result, e.g. 'pytest tests/test_auth.py passed' or 'user confirmed the fix'. Secrets are redacted."
    • addedInput schema / properties / evidence / maxLength
      Added value: +500
    • addedInput schema / properties / evidence / minLength
      Added value: +1
    • changedInput schema / properties / status / description
      Previous value: -"'success' when tests, lint or build passed or the user confirmed the result; 'failure' when the task failed or was abandoned."New value: +"'success' when the result is confirmed (tests/builds passed, research was cross-checked, or the user confirmed it); 'failure' when the task failed or was abandoned."
  2. Changed2 schema fields changedv0.3.2
    • addedInput schema / properties / evidence / description
      Added value: +"Short proof of the result, e.g. 'pytest tests/test_auth.py passed' or 'user confirmed the fix'. Up to 500 characters; secrets are redacted."
    • addedInput schema / properties / status / description
      Added value: +"'success' when tests, lint or build passed or the user confirmed the result; 'failure' when the task failed or was abandoned."
  3. First observedv0.1.3

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations, which only declare non-read-only, non-destructive, idempotent. It discloses the side effects (finalizes the task in the local Experience Graph, updates experience/lessons/path comparison, touches no project files), the replace-on-repeat semantics that align with idempotentHint=true, and specific error strings for the unplanned and not-approved cases. It also explains the evidence-ranking rule (agent_reported is never verified on its own; a passing test/build after the last edit is stronger), which is non-obvious behavioral context.

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?

Well front-loaded and clearly sectioned with inline labels (Evidence:, Returns:, Use when:, Not for:, Side effects:, Errors:) so an agent can scan it. Slightly long, and the "Use when" clause partially restates the status enum wording in the schema, but no sentence is filler.

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?

Despite having an output schema and complete annotations, it still explains return shape (recorded status plus a plain-language Path check) and the conditional case where no better path is named. Combined with side effects and error conditions, an agent has everything needed to call it correctly and interpret the result.

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

Parameters4/5

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

Schema coverage is 100%, so the parameters are already documented, but the description adds real meaning beyond the schema: it defines what counts as stronger evidence and that an agreeing report preserves that stronger evidence. Minor overlap remains where the "Use when" phrasing restates the status enum descriptions.

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+resource ("Record your reported outcome of the most recent task") and immediately scopes it against the sibling that handles strategy declaration ("Not for: declaring the strategy (use choose_path)"). An agent can distinguish it from choose_path and the read-only siblings without opening any schema.

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

Usage Guidelines5/5

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

Provides an explicit "Use when" list with four concrete confirmation conditions (tests/lint/build passed, research cross-checked, user confirmed, task failed/abandoned) and an explicit "Not for" clause naming the alternative tool. Nothing about when to call it is left to inference.

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