Skip to main content
Glama

wait_for_landed

Read-onlyIdempotent

Blocks until a thread's linked GitHub pull request is merged and returns the landing event, or null if the timeout expires; replay from a log ID catches missed landings.

Instructions

Block until a thread's linked GitHub pull request is merged (thread_landed) and return the ThreadLanded event (repo, pr_number, merged_by, merge_commit_sha, title), or null when the timeout lapses. The workspace records the landing but does not change the thread's state; use wait_for_event to wait on several kinds, and wait_for_result for a task's result rather than a merge. Scoped to thread_id and/or channel_id when given, else any landing in the workspace that you may read; since_log_id replays a landing recorded in the gap before this call subscribes. To put a deadline on a thread instead, use set_wait. Requires workspace:read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait_for_landed"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idNoUUID of a thread; only the landing of its linked pull request counts.
channel_idNoUUID of a channel; only landings of threads in it count. Omitted, any thread you may read in the workspace.
timeout_msNoWait window in milliseconds, from 1 to 300000 (default 30000). When it lapses the tool returns null.
since_log_idNoYour high-water log_id. The log is replayed for a matching event with a log_id greater than this before the wait goes live, so an event in the gap between two calls is caught. Omitted, only events after the call count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv479.0.2
    • changedInput schema / properties / channel_id / description
      Previous value: -"optional: scope to one channel's threads"New value: +"UUID of a channel; only landings of threads in it count. Omitted, any thread you may read in the workspace."
    • changedInput schema / properties / since_log_id / description
      Previous value: -"lookback anchor: replay the log for a matching event with log_id greater than this before parking live"New value: +"Your high-water log_id. The log is replayed for a matching event with a log_id greater than this before the wait goes live, so an event in the gap between two calls is caught. Omitted, only events after the call count."
    • changedInput schema / properties / thread_id / description
      Previous value: -"optional: wait for this thread's PR to land"New value: +"UUID of a thread; only the landing of its linked pull request counts."
    • changedInput schema / properties / timeout_ms / description
      Previous value: -"long-poll window in milliseconds"New value: +"Wait window in milliseconds, from 1 to 300000 (default 30000). When it lapses the tool returns null."
  2. First observedv479.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the read-only and non-destructive annotations, the description discloses blocking semantics, the null-on-timeout behavior, the fact that the workspace records the landing without changing thread state, the workspace:read requirement, and how since_log_id closes the gap between calls. These are substantive behavioral facts the annotations do not carry.

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?

The main action and return value are front-loaded, followed by behavior, alternatives, scoping, gap replay, and the auth requirement. Despite dense semicolon-linked clauses, every sentence carries information an agent needs for correct invocation, with no filler.

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 blocking wait tool with four optional parameters and no output schema, the description supplies everything needed: return shape, timeout behavior, scoping defaults, gap replay, state side effects, required auth scope, and sibling alternatives. Nothing an agent needs in order to call it correctly is omitted.

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 coverage is 100%, so the baseline is 3, but the description adds combined semantics the individual schema entries do not: thread_id and/or channel_id scope the wait, and omitting both means any landing the caller may read in the workspace. It also explains the purpose of since_log_id as gap recovery rather than merely restating its type.

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 specific verb and resource: block until a thread's linked GitHub pull request is merged, returning the ThreadLanded event or null on timeout. It also names the exact return fields and distinguishes itself from wait_for_event and wait_for_result, so an agent can identify the tool without opening the schema.

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?

Explicit routing guidance is provided: use wait_for_event to wait on several kinds, wait_for_result for a task's result rather than a merge, and set_wait to put a deadline on a thread instead. The conditions selecting each alternative are stated directly, leaving 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