Skip to main content
Glama

Loop

loop

The full-managed Loop: which computer runs which task or step, and steering it.

action:
- agenda: what waits or went wrong now (the list a supervise round gets).
- placements: placements, filtered by task_key, step (work|review|merge|
  supervise) and open_only; needs_you lists the ones no computer can take.
- placement: one placement with its detail (placement_id).
- report: the computer a step was placed on says how it ended (placement_id,
  outcome finished|failed, note). A finish that changes nothing counts as a
  failure after 2 minutes.
- move: put a task or step on another computer (placement_id, host_id
  optional: without it the best other computer; the old one is not picked
  again for this task). Also puts a held task back on the computers.
- withdraw: take a task off the computers until someone claims it or it is
  moved (placement_id); ends a supervise round. Reviews and merges are moved.
- schedule_now: run a scheduling pass now (people and commanders).
- hosts: the computers, as list_hosts.
- doctor: what the Loop needs and what is missing, each with the fix.
agenda, move and withdraw are for people, super admins and supervisor
computers (SUPER_ADMIN token or the supervisor capability).

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": {
      "action": "<action>"
    },
    "name": "loop"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
stepNo
actionYes
host_idNo
outcomeNo
task_keyNo
open_onlyNo
placement_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses important side effects and constraints: a report that changes nothing counts as a failure after 2 minutes, move avoids picking the old host again, withdraw ends a supervise round, and reviews/merges are moved. With output schema coverage present, the remaining gap around return values is acceptable, though broader auth or rate-limit behavior is not described.

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?

The purpose is front-loaded, followed by a structured action-by-action list that is dense but appropriate for a multi-action dispatcher. Some phrasing is telegraphic and compressed, but each action entry contributes operational information rather than repeating schema fields.

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

Completeness5/5

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

For a complex eight-parameter action-dispatch tool, the description covers all actions, relevant parameters, permission requirements, and notable side effects. An output schema exists, so it does not need to explain return values, and nothing critical for correct invocation appears missing.

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 description coverage is 0%, so the description carries the full burden and mostly succeeds: it maps task_key, step, open_only, placement_id, outcome, note, host_id, and action to their action-specific meanings and gives enum values for step and outcome. It does not define formats or constraints for identifiers such as placement_id or task_key, leaving some semantic detail implicit.

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 states the tool's domain and enumerates each action (agenda, placements, placement, report, move, withdraw, schedule_now, hosts, doctor), making the resource and operations specific. It distinguishes hosts from list_hosts and notes which actions are privileged, though it does not broadly contrast Loop with other task-management siblings such as list_tasks or update_task.

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?

It gives clear context for each action and some conditions, such as when needs_you applies, how open_only filters placements, what happens when move is called without host_id, and the 2-minute failure rule for report. It also states permission boundaries for agenda, move, and withdraw, but lacks explicit when-not guidance or alternative routing beyond hosts being the same as list_hosts.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.