Skip to main content
Glama

Autolab Next

autolab_next

Retrieve the next role prompt and assembled context for an Autonomous Lab session, determining whether the AI acts as PI or Trainee so the review loop continues.

Instructions

Get the next role prompt for the Autonomous Lab session.

Reads the current state to determine whose turn it is (PI or Trainee), assembles context (idea, profiles, meeting history, file listings), and returns a detailed role prompt.

The AI should then follow the returned prompt exactly, acting as the specified role (PI or Trainee).

MANDATORY LOOP PROTOCOL — the lab NEVER stops:

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "autolab_next"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_directoryNoProject directory path.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.4

TDQS

B3.4/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, and it does disclose that the tool reads current state, determines whose turn it is, and assembles idea, profiles, meeting history, and file listings before returning a prompt. It does not state whether calling it advances or mutates session state (crucial in a loop protocol), nor anything about permissions or side effects.

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

Conciseness3/5

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

The core is front-loaded and easy to scan, but the trailing "MANDATORY LOOP PROTOCOL — the lab NEVER stops:" is a truncated fragment that dangles without content, wasting the most emphatic position in the description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the return shape needs no explanation, and the single parameter is fully documented in the schema. The description covers what the tool gathers and what the agent should do next, leaving only the incomplete loop-protocol rules and side-effect behavior unaddressed.

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?

The single parameter project_directory is fully described in the schema (100% coverage, default "."), so the baseline is 3. The description never mentions it or how relative versus absolute paths affect which session is loaded, so it adds nothing beyond the schema.

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 and resource: "Get the next role prompt for the Autonomous Lab session," then explains what it reads and assembles to produce it. It separates itself from state-inspection siblings like autolab_status by making clear the output is a role prompt to act on, though it never names those siblings 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?

It tells the agent to call this to obtain the next turn and to "follow the returned prompt exactly," which implies a loop-driven workflow. However, the guidance about when to start, when to stop, and how it relates to autolab_status, autolab_resume, or lab_meeting is missing or cut off in the dangling "MANDATORY LOOP PROTOCOL" line.

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