Skip to main content
Glama

record_result

Record an agent outcome, such as task completion, test failure, or tool rejection, with confidence and details to update health and EISV metrics for continuous runtime governance.

Instructions

Primary workflow name for recording outcomes; implemented by outcome_event(). EISV fields: E=Energy [0,1] (mixed-provenance capacity estimate); I=Information Integrity [0,1] (mixed-provenance calibration estimate); S=Entropy [0,1] (drift from the agent's own normal); V=Valence [-1,1] (EMA-smoothed E-I imbalance; positive=motion outruns integrity, negative=integrity outruns motion).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailNoType-specific metadata (e.g., mark_count, test_name, error_message)
is_badNoWhether this is a negative outcome. Inferred from type if omitted.
agent_idNoAgent ID. Falls back to session-bound agent_id if omitted.
confidenceNoAgent confidence at outcome time (0-1). Looked up from last check-in if omitted.
session_idNoOptional session id; falls back to client_session_id and then to context.
outcome_typeYesType of outcome event
outcome_scoreNoQuality score 0.0 (worst) to 1.0 (best). Inferred from type if omitted.
prediction_idNoTactical prediction id from a prior process_agent_update response.
response_modeNo'full' is an alias for include_semantics=true; 'lite' (default) returns the small snapshot.
decision_actionNoThe decision the agent took (e.g. 'proceed', 'pause').
continuity_tokenNoOwnership proof from onboard()/identity(), for same-live-process rebinds only. Not a cross-process resume credential.
client_session_idNoIn-session binding id from start_session()/identity(); pass it on same-process calls. Not a cross-process proof.
include_semanticsNoIf true, the response's eisv_snapshot carries the full EISV ontology (state_semantics role table + hierarchy).
verification_sourceNoProvenance of this outcome.agent_reported_tool_result

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds genuinely useful detail about the EISV measurement semantics (ranges, mixed-provenance estimates, EMA smoothing, interpretation of Valence), which explains what the tool computes. However, it does not disclose the write/side-effect behavior of recording (persistence, state mutation, reversibility) or any response-shape expectations beyond EISV fields.

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?

The description is compact, front-loaded with the purpose, and every part earns its place: the EISV field definitions are dense but precisely defined with ranges and provenance notes. The acronym density (EISV, EMA, E-I) is a minor readability cost, and the 'implemented by outcome_event()' clause is slightly implementation-flavored, but overall it is tight and information-efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 14-parameter tool with no output schema and no annotations, the description explains the core EISV return semantics well but omits the practical call flow: what effect recording has, what a 'lite' snapshot contains, and how prediction_id/verification_source fit into the workflow. The schema covers parameter fallbacks, so the main gap is the absence of an end-to-end behavioral overview and explicit side-effect disclosure.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3 and the schema already documents all 14 parameters in detail. The description adds value mainly by explaining the EISV ontology, which clarifies the meaning of include_semantics and response_mode, but it does not add meaning to most individual input parameters. This is acceptable given the schema's thoroughness.

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 description states a specific verb and resource: 'recording outcomes', and labels the tool as the 'Primary workflow name' for that purpose, which signals it is the canonical entry point. It does not explicitly contrast itself with siblings like store_finding or update_finding, so it lacks the explicit sibling differentiation required for 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?

The phrase 'Primary workflow name for recording outcomes' gives an implied usage context: this is the go-to tool when an outcome needs to be recorded. However, there is no explicit when-to-use vs. when-not-to-use guidance, no named alternatives, and no prerequisites or exclusion criteria, so the guidance stops at implication.

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