Skip to main content
Glama

session_schedule

Schedule a prompt to fire on an OpenCode session after a delay of up to one hour; use for one-off reminders, not recurring or restart-safe jobs.

Instructions

Schedule a message on a session after a delay. Fire-and-forget: does not survive server restart. For recurring checks, use OpenCode built-in automations.

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": {
      "session_id": "<session_id>",
      "prompt": "<prompt>",
      "delay": "<delay>"
    },
    "name": "session_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
delayYesWhen to fire: a duration like "30s", "5m", "1h", "90s", "2m30s" or an ISO timestamp like "2026-11-22T13:00:00". Max 1 hour.
promptYesPrompt text to send when the timer fires.
serverNoServer id. Omit when exactly one server is available.
allowedNoAllow write operations (gated).
session_idYesSession id on that server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, non-idempotent), so the description's contribution is the durability caveat: "Fire-and-forget: does not survive server restart". That is genuinely non-obvious behavior not derivable from annotations or schema, though it omits that delivery is gated by the `allowed` write flag.

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

Conciseness5/5

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

Two sentences, no filler, with the core action front-loaded and the caveat-plus-alternative following. Every clause carries distinct information.

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 small five-parameter scheduling tool with no output schema, the description covers purpose, durability, and the recurring-use alternative. The main residual gap is what the call returns (a handle or job id) and whether fire happens even if the session is idle, which an agent might need to reason about confirmation or cancellation.

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?

Schema coverage is 100%, with the `delay` format, duration examples, and the one-hour maximum all documented in the schema itself. The description adds no syntax or constraint detail beyond that, and says nothing about `server` or `allowed`, so the baseline 3 applies.

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 gives a specific verb and resource ("Schedule a message on a session") plus the distinguishing attribute "after a delay", which separates it from immediate-delivery siblings like session_prompt without needing to name them. An agent can tell exactly what this tool does from the first sentence.

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 supplies an explicit negative case and alternative: "For recurring checks, use OpenCode built-in automations", which prevents misuse as a cron substitute. It stops short of a full when-to-use framing (e.g. when a delayed prompt is preferable to session_prompt plus external timing), but the exclusion is concrete rather than implied.

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