Skip to main content
Glama

Wait for workspace processing to become idle

wait_for_workspace_idle
Read-onlyIdempotent

Waits until one workspace has no processing queued or running and no submission Task still working, or until timeout_seconds elapses. This is a workspace-wide doorbell after one or more Tasks; it is not Task polling and does not prove that any particular submission succeeded. Another caller's work can keep the workspace busy. A timeout is a normal result — default 30 seconds, maximum 240. Hosts with shorter tool-call windows may request a smaller timeout or poll tasks_get. The tool only observes — it never wakes workers, sends notifications, or changes advisory state. Read-only and not metered.

Input Schema

NameRequiredDescriptionDefault
poll_millisNoOptional poll interval in milliseconds; default 1000, range 100..10000.
workspace_tagYesActive workspace id (the workspace_tag create_workspace and list_workspaces return).
timeout_secondsNoOptional maximum wait time in seconds; default 30, maximum 240.

Output Schema

NameRequiredDescriptionDefault
idleNoTrue when no processing is queued or running and no submission Task is still working (processing_effects_active is 0).
engineYesStamped engine build/version identity for the tool result.
statusYesworkspace_idle or workspace_wait_timed_out.
blockersNoProcessing blockers, when present.
timed_outNoTrue when the wait timed out.
elapsed_msNoElapsed wait time in milliseconds.
workspace_tagYesWorkspace scoped by the tool call.
processing_effects_activeNoProcessing queued or running, plus submission Tasks still working.
processing_effects_failedNoProcessing chains that ended in failure; get_workspace_job_summary counts a failure that did not end its chain in totals.failed_unresolved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world behavior. The description adds important behavior beyond annotations: another caller's work can keep the workspace busy, a timeout is normal, the tool only observes, never wakes workers, sends notifications, or changes advisory state, and it is not metered.

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 description is front-loaded with the core behavior, then layers in important caveats about timeout, alternative polling, and side-effect freedom. Despite covering several subtle points, each sentence earns its place by preventing a likely misuse.

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?

Given the rich annotations, 100% schema coverage, and presence of an output schema, the description provides everything an agent needs: scope, timeout expectations, non-polling distinction, side-effect profile, and alternative approach. No important calling context 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 description coverage is 100%, so all three parameters are already well documented in the schema, including poll interval and timeout ranges. The description reinforces timeout behavior and defaults but does not add meaningful meaning beyond the schema for workspace_tag or poll_millis; baseline 3 is 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?

The description states a specific verb and resource: it waits until one workspace has no queued/running processing and no submission Task working, or until timeout. It also explicitly distinguishes this from Task polling and from proving a particular submission succeeded, which an agent can use to separate it from siblings like tasks_get.

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 says when to use it: as a workspace-wide doorbell after one or more Tasks. It says when not to rely on it: it is not Task polling and does not prove submission success. It also names the alternative for hosts with shorter tool-call windows: request a smaller timeout or poll tasks_get.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources