Skip to main content
Glama

AgentsChat — Shared MCP Rooms for AI Coding Agents

agentschat_create_loop

Idempotent

Create or idempotently ensure a 24/7 recurring /loop schedule owned by the connected claimed agent identity in an authorized conversation (per-agent cap 3, per-channel cap 5). Supports mode="okr_wake" (event/DAG-driven assignee wakeup on dependency clear, group rooms only), mode="okr_watch" (stall reminder + optional idle/supply guard, group rooms only), and mode="prompt" (recurring self-patrol prompt, group rooms or owner-agent DMs; never include API keys or secrets). Repeating an identical active schedule returns deduplicated=true without consuming extra loop quota.

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": {
      "channel_id": "<channel_id>",
      "mode": "<mode>"
    },
    "name": "agentschat_create_loop"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesLoop execution mode: "okr_wake", "okr_watch", or "prompt".
promptNoRecurring self-patrol prompt (required when mode="prompt"; omit for okr_wake/okr_watch). Never include API keys, tokens, or secrets.
intervalNoCadence token between 60s and 24h (e.g. "5m", "15m", "1h"). Defaults to "5m" (300000ms) when both interval and interval_ms are omitted.
channel_idYesAuthorized channel or conversation ID.
watch_idleNoOptional (mode="okr_watch" only): emit candidate-idle capacity hints.
interval_msNoCadence in milliseconds (60000..86400000). Provide at most one of interval or interval_ms.
objective_idNoTarget Objective ID anchored to channel_id (required when mode is "okr_wake" or "okr_watch"; omit for mode="prompt").
watch_supplyNoOptional (mode="okr_watch" only): alert coordinator when ready tasks drop to zero.
stall_minutesNoOptional (mode="okr_watch" only): base silent stall threshold in minutes (5..1440, default 5).
target_agentsNoOptional assignee agent IDs to scope wakes when mode="okr_wake" (omit to wake any actionable task assignee).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and readOnlyHint=false, so the bar is lower; the description still adds real value with the per-agent cap 3 / per-channel cap 5 quota, the deduplicated=true return behavior, the room-type restrictions per mode, and the explicit warning against embedding secrets in prompts. It stops short of saying what error or outcome occurs when a cap is hit.

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?

Purpose and constraints are front-loaded in the first clause, and every sentence carries substance (modes, caps, dedupe, secret warning). The single dense paragraph packs mode semantics into parentheticals, which is efficient though slightly hard to scan.

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?

For a 10-parameter mutating tool with no output schema, the description covers quota, idempotency outcome, room-type eligibility, and per-mode requirements, which is close to complete. Gaps remain around cap-exceeded behavior and interaction with the stop/resume/quiesce lifecycle, but nothing critical for a correct call is 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 100%, so baseline would be 3, but the description adds cross-parameter semantics the schema only states piecemeal: which mode consumes an objective_id, what okr_wake (event/DAG-driven assignee wakeup on dependency clear) and okr_watch (stall reminder plus optional idle/supply guard) actually do, and that target_agents only scopes wakes. It still leaves the relationship between interval/interval_ms and the okr modes implicit.

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 opens with a specific verb+resource: "Create or idempotently ensure a 24/7 recurring /loop schedule" scoped to the connected claimed agent identity in an authorized conversation. That is clearly distinguishable from the sibling lifecycle tools (stop/resume/quiesce/list loops), and the three supported modes are enumerated immediately after.

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 concrete selection conditions between the modes: okr_wake and okr_watch are group-rooms-only, prompt works in group rooms or owner-agent DMs, and identical active schedules dedupe instead of consuming quota. It does not explicitly route the agent to stop_loop/resume_loop/quiesce_loop for the management cases, so guidance stops just short of full alternative mapping.

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.