Skip to main content
Glama

initialize_loop_run

Initializes a self-improving AI agent loop after confirming task details. If underspecified, returns clarifying questions; provide answers to begin the run.

Instructions

Ask-once gate. Confirms the task before any loop runs. If the task is underspecified, returns one brief explanation plus a few short questions once (goal; mine-vs-improve start; mine scope — your whole history or a set number of loops; improvement order — best loops first or in order; what "better" means; any task-specific hard limit; and a deeper-explanation offer); call again with { answers } to begin. It never asks the operator to choose the model, promotion mode, benchmark policy, deterministic-vs-subjective routing, or the standing guarantees — the supervisor decides those from the task. Stores every user message locally with a sha256 hash. After initialization it does not ask again or mark the campaign complete; the operator remains the stop condition and the dashboard stays available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNowhat to improve/build
modelNofrontier route; defaults to claude-opus-4-8
runIdNoreuse to continue a run; omit to create one
configNo{ failurePatience(10-15), comparisonRule, promotion:{...}, mode }
answersNoanswers to the ask-once questions
userMessagesNoverbatim operator messages — stored + hashed for the hook
acceptanceCriteriaNo
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses key behaviors: local storage with sha256 hash, no repeated questioning, operator remains stop condition, and dashboard stays available. It lacks explicit mention of error handling or idempotency, but covers the core safety and lifecycle traits.

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 description is a single dense paragraph with many clauses and parentheticals. While every sentence contributes information, the structure could be improved with bullet points or clearer separation of concerns for easier scanning.

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?

Given the tool's complexity—7 parameters, nested objects, and many sibling tools—the description adequately covers purpose, usage, behavioral nuances, and parameter context. It does not explain return values, but no output schema exists and the rules state that is not required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 86%, baseline 3. The description adds value by explaining the 'answers' parameter as responses to the ask-once questions and clarifies the role of 'task', 'userMessages', and 'runId' in the initialization flow. This goes beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the tool as an 'Ask-once gate' that confirms the task before loops run, and details the specific questions it asks. This distinguishes it from sibling tools like loop_start or loop_next that handle later stages.

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 states when to call (first, before any loop) and to call again with answers to begin. It also clarifies what it never asks (model, promotion mode, etc.), providing implicit guidance on when not to expect those queries. However, it does not explicitly contrast with alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexalexalex222/super-loop-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server