Skip to main content
Glama

laya_next_decision

Selects the next action from a fresh textual observation and 2-20 candidates, records the prior outcome, checks the current revision, and flags review-required choices before automatic execution.

Instructions

Select next action from a fresh textual observation and 2-20 concrete candidates. Record prior outcome first. Pass current revision. Do not execute a requires_review result automatically.

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>",
      "observation": "<observation>",
      "actions": "<actions>"
    },
    "name": "laya_next_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsYes
revisionYes
observationYes
sequence_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It reveals that results may include a requires_review state and must not be executed automatically, but it does not explain side effects, state mutation, error behavior, idempotency, or what the response contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is four short imperative statements with no wasted wording, and the core action is front-loaded. Prerequisites and the execution warning follow in logical order.

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 stateful decision tool with four required parameters, no annotations, and no output schema, the description is too sparse. It says how to select an action and warns about one result state, but it omits sequence_id semantics, expected return values, and broader side effects.

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 0%, so the description must compensate for all four parameters. It adds meaningful constraints for three of them: observation must be fresh text, actions must be 2-20 concrete candidates, and revision must be current, but sequence_id is never explained.

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: "Select next action" using a fresh textual observation and 2-20 candidate actions. This is clear enough for an agent to understand the operation, but it does not explicitly distinguish it from nearby siblings such as laya_choose_action or laya_predict.

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?

The description gives clear procedural context: "Record prior outcome first" and "Pass current revision" indicate prerequisites, while the warning about requires_review results sets a usage constraint. It does not name alternatives or explicitly say when to prefer this over laya_choose_action, so it stops short of full alternative-based guidance.

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