Skip to main content
Glama

schedule_dispatch

Dispatch a prompt repeatedly on a channel at fixed intervals, with automatic stop via sentinel or deadline. Persists across restarts and supports chaining.

Instructions

Recurring dispatch: fire prompt on channel every interval_seconds, until a deadline or until the prompt emits the literal stop sentinel [BRIDGE_STOP_SCHEDULE] in its result.

Each tick is an independent dispatch_async job — ticks are short individually, but the schedule can run for hours. The bridge owns the loop, persists schedules to disk, and resumes them after a restart (without burst-firing missed ticks).

Args: prompt: The text fired at each tick. channel: Channel for every tick. Same-session continuity across ticks (each tick --resumes the prior). interval_seconds: Seconds between ticks. Minimum 10. until: Absolute end time, ISO 8601. Prefer including a timezone (e.g. "2026-04-27T20:00:00Z"); naive datetimes without a timezone are interpreted as UTC, not local time, so the same string yields the same instant regardless of which container the bridge runs in. Mutually exclusive with until_seconds. until_seconds: Relative end time in seconds from now (e.g. 14400 = 4 hours). timeout_seconds: Per-tick timeout. Default 300. permission_mode: Same as dispatch. cwd: Same as dispatch. after_schedule_id: Chain this schedule to start only after the named predecessor terminates (completed, cancelled, or error). Useful for pipelines: "after wave A merges, run hygiene check wave B." This schedule starts in waiting status and transitions to active automatically. Cycles are detected and rejected. notify_url: HTTPS endpoint to POST event payloads to. Optional. Bridge fires fire-and-log POSTs; the destination is the user's relay (Slack/Pushover/email/etc.) — bridge does not retry. notify_on: List of event names to push. Values: tick (every tick fired — chatty), tick_with_sentinel (the tick that triggered self-cancel), tick_error (a tick failed to spawn), schedule_end (any terminal transition: completed, cancelled, error). Default ["schedule_end"]. notify_headers: Extra request headers (e.g. auth). Sent on every webhook POST.

Returns: {ok: true, schedule_id, schedule} or {ok: false, error}.

Self-cancellation: if any tick's result text contains [BRIDGE_STOP_SCHEDULE], the schedule cancels after that tick. Use this in your prompt for "watch X until Y" patterns:

"Check open PRs. If all merged, end your reply with
[BRIDGE_STOP_SCHEDULE]. Otherwise summarize."

Webhook payload shape (result_preview truncated to 4KB)::

{"event": "schedule_end", "schedule_id": "...",
 "channel": "...", "tick_count": 17, "status": "cancelled",
 "last_tick_at": ..., "last_tick_result": "...",
 "last_job_id": "...", "error": null}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
channelYes
interval_secondsYes
untilNo
until_secondsNo
timeout_secondsNo
permission_modeNo
cwdNo
after_schedule_idNo
notify_urlNo
notify_onNo
notify_headersNo
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: each tick is independent, schedule persists to disk and resumes after restart, self-cancellation via sentinel, webhook payload shape, and per-tick timeout. It provides rich context for agent decision-making.

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 description is well-structured with a summary paragraph, Args list, Returns, and additional details. It is comprehensive but slightly verbose, though every section earns its place given the tool's complexity.

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?

The description covers all aspects: parameters, return value, webhook payload, self-cancellation, persistence, and chaining. With no output schema, it provides the return structure. It is complete for a scheduling tool with 12 parameters.

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

Parameters5/5

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

Schema coverage is 0%, but the description compensates by explaining every parameter in detail, including mutual exclusivity (until vs. until_seconds), timezone interpretation, chaining behavior, and webhook options. Examples like '14400 = 4 hours' add clarity.

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 states the tool's purpose: 'Recurring dispatch: fire prompt on channel every interval_seconds...' It distinguishes from siblings like dispatch (one-off) and dispatch_async (async single) by explicitly using 'recurring' and detailing scheduling behavior.

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 implies usage for recurring tasks and provides a self-cancellation pattern example. However, it does not explicitly contrast with siblings or state when not to use it, leaving implicit guidance.

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/JosiahSiegel/claude-bridge'

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