Skip to main content
Glama

laya_close_sequence

Close a completed, cancelled, or blocked sequence with a required revision and evidence-based reason to finalize its record.

Instructions

Close a completed, cancelled or blocked sequence with an evidence-based reason.

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

Input Schema

NameRequiredDescriptionDefault
reasonYes
revisionYes
sequence_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description must convey the full behavioral picture. It hints that the reason must be 'evidence-based' but says nothing about irreversibility, whether a closed sequence can be reopened, required permissions, or what happens to in-flight decisions when a sequence is closed — all critical for a state-changing operation.

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?

A single tight sentence with the verb and the state precondition front-loaded and no redundant wording. Nothing could be removed without losing information.

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?

This is an unannotated mutation tool with three undocumented parameters and no output schema, yet the description covers only valid entry states. It omits the effects of closing, error behavior on a stale revision, and post-close semantics, leaving an agent under-informed before a destructive-style call.

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% — parameters carry only titles. The description clarifies the intended nature of 'reason' (evidence-based) but leaves 'revision' completely unexplained, which appears to be a concurrency/version token an agent must understand to avoid failed calls, and adds nothing about sequence_id format.

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 ('Close') and resource ('sequence'), plus the states in which closing is valid (completed, cancelled, blocked). This distinguishes it from siblings like laya_start_sequence and laya_get_sequence, though the description never names those alternatives 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?

The phrase 'completed, cancelled or blocked sequence' functions as a precondition, telling the agent when closing is legitimate. However, there is no guidance on what to do instead if the sequence is in another state, nor any mention of a sibling tool for that case.

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