Skip to main content
Glama

laya_get_sequence

Recover a decision sequence's goal, revision, pending decision, and observed history after reconnect. Inspect the environment before retrying pending actions.

Instructions

Recover goal, revision, pending decision and observed history after reconnect. Inspect the actual environment before retrying any pending action.

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>"
    },
    "name": "laya_get_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
sequence_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it implies a read/recovery operation but never states read-only or non-destructive semantics outright. It does add useful behavioral context absent from structured fields: that state may be stale after a reconnect and that the environment should be re-inspected before retrying. Missing are error behavior for unknown/expired sequences and whether the call mutates anything.

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 short sentences, front-loaded with what is recovered and followed by the operational caveat; nothing is redundant. It is terse to the point that 'sequence' and 'environment' are left undefined, which costs a little clarity.

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?

Given no output schema, the enumeration of recovered fields is valuable return-value context, and the retry caution covers the post-reconnect hazard. But for a stateful workflow tool with zero annotation coverage and an undocumented identifier parameter, the description leaves the agent without enough to call it correctly from a cold start.

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% and the single parameter, sequence_id, is never mentioned in the description. There is no guidance on the identifier's format or where an agent obtains one, so the description adds nothing beyond the schema's bare property name.

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 uses a specific verb ('Recover') and enumerates exactly what state is returned: goal, revision, pending decision, and observed history. The 'after reconnect' qualifier narrows the situation clearly. It never distinguishes this from siblings such as laya_status or laya_next_decision, which appear to expose overlapping sequence state.

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 timing is implied ('after reconnect') and there is a follow-on instruction to inspect the environment before retrying pending actions, which is genuine usage context. However, it gives no explicit when-to-use versus laya_status, and no exclusions or prerequisites for obtaining a valid sequence_id.

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