Skip to main content
Glama

laya_choose_action

Selects one concrete action from 2–20 options based on a goal and observation without executing it; low-confidence choices can block automatic recommendation for review.

Instructions

Choose one of 2-20 concrete actions without executing. Each action has id and description. requires_review blocks automatic recommendation on missing/low confidence. For repeated decisions use sequence tools.

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": {
      "goal": "<goal>",
      "observation": "<observation>",
      "actions": "<actions>"
    },
    "name": "laya_choose_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYes
modelNoauto
actionsYes
observationYes
min_confidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does real work: it discloses that nothing is executed, bounds the candidate set at 2-20, and explains that requires_review suppresses an automatic recommendation when confidence is missing or low. That gating rule is the key behavioral fact an agent needs. What is missing is the response shape (what a blocked vs. recommended result looks like) and error behavior for malformed goal/observation.

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?

Four short sentences, each carrying distinct information, with the core capability and the no-execution guarantee front-loaded. The only friction is the undefined 'requires_review' token, which reads as jargon before the reader knows where it applies.

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 five-parameter tool with no annotations, no output schema, and zero schema coverage, the description covers the decision semantics well but leaves the input contract half-documented. It is enough to understand what the tool does and when to reach for it, but not enough to confidently construct the goal, observation, and model arguments.

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 description coverage is 0% across five parameters, so the description must compensate and largely does not. It explains the inner structure of the actions array (id and description) and gestures at min_confidence through the 'low confidence' wording, but goal, observation, and especially model (default 'auto', with no indication of valid values) are entirely unaddressed. An agent must guess at the expected format of observation and at what 'auto' resolves to.

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?

'Choose one of 2-20 concrete actions without executing' gives a specific verb, resource, and — critically — a non-execution guarantee that separates it from any action-performing tool. The closing sentence routes repeated-decision cases to the sibling sequence family. It stops short of a 5 because 'requires_review' is introduced without saying whether it lives on the action object or in the call, leaving the object model slightly fuzzy.

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 a clear use condition (single decision, 2-20 candidate actions) and an explicit alternative for repeated decisions ('use sequence tools'), which maps onto the sibling set laya_start_sequence/laya_next_decision. It offers no explicit when-not guidance beyond that, such as what to do when fewer than two actions exist or when the goal is ambiguous.

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