Skip to main content
Glama

laya_record_outcome

Record succeeded, failed, or skipped outcomes with post-action evidence for revision-checked decision sequences; skipped covers rejected proposals, and three consecutive failures block actions.

Instructions

After acting with agent tools, record succeeded/failed/skipped and post-action evidence. Use skipped for rejected proposals. Three consecutive failures block the sequence.

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": {
      "sequence_id": "<sequence_id>",
      "revision": "<revision>",
      "decision_id": "<decision_id>",
      "outcome": "<outcome>",
      "observation": "<observation>"
    },
    "name": "laya_record_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
outcomeYes
revisionYes
decision_idYes
observationYes
sequence_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description must carry the whole behavioral burden; it does disclose one meaningful trait that structured fields do not — three consecutive failures block the sequence. It leaves many mutation-relevant behaviors unstated: whether writes are idempotent, what 'blocked' means operationally, what happens if an outcome is recorded twice, and what the revision field guards against.

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?

Two sentences, front-loaded with the action and timing, no filler. The phrasing 'record succeeded/failed/skipped and post-action evidence' is slightly compressed but still parseable.

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 five-required-parameter mutation tool with no annotations and no output schema, the definition omits too much: the source and meaning of decision_id and sequence_id, what revision represents (likely optimistic concurrency or sequence ordering), and the consequences of the failure-blocking rule. An agent could invoke it, but not confidently.

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 coverage is 0% across five required parameters, so the description must compensate; it only explains 'outcome' (succeeded/failed/skipped) and 'observation' implicitly via 'post-action evidence'. The critical identifiers sequence_id, revision, and decision_id are entirely undefined anywhere, leaving an agent to guess their provenance and semantics.

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?

States a specific verb (record) and resource (outcome), plus the vocabulary it accepts (succeeded/failed/skipped) and its position in the workflow ('after acting with agent tools'). That distinguishes it reasonably from read-oriented siblings like laya_get_sequence or laya_status, though no sibling is named explicitly.

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?

Provides a timing cue ('after acting with agent tools') and one concrete rule ('use skipped for rejected proposals'), which is genuinely useful disambiguation. However there is no guidance on when not to use it, no mention of prerequisites such as needing a prior decision from laya_next_decision, and no note on what to do once failures have blocked the sequence.

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