Skip to main content
Glama

get_wait

Read-onlyIdempotent

Read a thread's wait timer to check when it expires, what happens on timeout, and whether it has fired; returns null if no wait is set. Requires workspace:read.

Instructions

Read the wait timer on one thread: an object with wait_until, on_timeout (notify or park), an optional reason, created_by, created_at and fired_at, or null when no wait is set. fired_at is empty until the sweeper has escalated the wait after wait_until passed. This only reads the timer; to set or remove it use set_wait or cancel_wait, and to block until an event happens use a wait_for_* tool. Requires workspace:read.

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": {
      "thread_id": "<thread_id>"
    },
    "name": "get_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYesUUID of the thread whose wait timer to read. A thread has at most one wait. The caller must be able to read the thread's channel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv479.0.2
    • addedInput schema / properties / thread_id / description
      Added value: +"UUID of the thread whose wait timer to read. A thread has at most one wait. The caller must be able to read the thread's channel."
  2. First observedv479.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes further with behavior annotations don't cover: returns null when no wait exists, fired_at stays empty until the sweeper escalates the wait after wait_until passes, and the call requires workspace:read. That is exactly the extra context the lower bar for annotated tools rewards.

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?

Three tightly packed sentences: what is returned first, then the fired_at lifecycle note, then the sibling routing and permission. No filler, and the return shape is front-loaded.

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?

With no output schema, the description carries the burden of describing the response and does so field by field (wait_until, on_timeout, reason, created_by, created_at, fired_at, plus the null case). For a single-parameter read tool, nothing material is missing.

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% and the schema already documents thread_id's UUID format, single-wait cardinality, and channel-read permission. The description reinforces the single-thread framing but adds no syntax or format detail beyond the schema, 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 states a precise verb and resource ("Read the wait timer on one thread") and immediately enumerates the returned fields, so an agent knows both what is fetched and what comes back. It also distinguishes itself from set_wait, cancel_wait, and the wait_for_* family in the same paragraph.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly routes the agent: use set_wait or cancel_wait to mutate the timer, and use a wait_for_* tool to actually block until an event. The scope (this only reads) plus these named alternatives leaves nothing to inference.

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

Deploy Server

Other Tools