Skip to main content
Glama

Wait for a Devin session

devin_wait
Read-only

Blocks until a Devin session changes status or the timeout expires, then returns the current state and last message. Use it to monitor subagent progress without polling in a tight loop.

Instructions

Blocks until the session status changes (or seconds pass) and returns it: running (with branch tip), question, idle (turn finished without a marker; full text), done (turn finished and the last message starts with BİTTİ:), error, stopped. The last message follows the JSON block verbatim. Disconnects are retried internally. Do not call it in a tight loop.

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": {
      "id": "<id>"
    },
    "name": "devin_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSession id returned by devin_run (format devin-<hex>)
secondsNoMaximum wait in seconds (default 600, max 3600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already mark it read-only and open-world, and the description adds substantial behavior: blocking until status change or timeout, full status taxonomy, verbatim last-message semantics, and internal retry on disconnect. This goes well beyond what the annotations provide.

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 blocking contract is front-loaded, followed by status definitions and practical cautions. Every sentence adds useful information with no waste.

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?

There is no output schema, so the description carries the return-value burden and does so by explaining the status values and message behavior. Retry and tight-loop cautions round out the behavioral picture needed to call it correctly.

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%, so the schema already documents 'id' and 'seconds'. The description only references the timeout behavior ('or seconds pass') and does not add syntax or format detail beyond the schema, making the baseline 3 appropriate.

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?

States a specific blocking verb ('Blocks until') and resource (session status), and enumerates the return states. An agent can distinguish this from a non-blocking status check 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 Guidelines3/5

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

The blocking use case and the negative guidance 'Do not call it in a tight loop' are present, but there is no explicit comparison to alternatives like devin_status. Usage is implied rather than fully routed.

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