Skip to main content
Glama
VericyIO

AIR MCP Server

by VericyIO

Wait for assessment

air_wait_for_assessment
Read-only

Poll an assessment until it completes, fails, or a report is ready, using exponential backoff up to a timeout. Returns status if time runs out; call again to continue waiting.

Instructions

Wait until an assessment is completed, failed, or reportAvailable, up to timeoutMs. Uses exponential backoff. Returns ready:false with the last observed status if the wait budget runs out — call again with the same assessmentPid to keep waiting. Requires assessments:read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutMsNoDefault 1800000ms; max 1800000ms
assessmentPidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.2
    • changedInput schema / properties / timeoutMs / description
      Previous value: -"Default 1800000ms"New value: +"Default 1800000ms; max 1800000ms"
    • addedInput schema / properties / timeoutMs / maximum
      Added value: +1800000
  2. First observedv1.0.1

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond annotations (which only cover readOnly/openWorld/non-destructive) by disclosing exponential backoff, the timeout budget concept, and the partial-result behavior (ready:false plus last observed status). It also names the required scope, assessments:read. It doesn't describe the ready:true payload, which matters since there is no output schema.

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 tight sentences, front-loaded with the wait condition, then implementation behavior, then the retry pattern. No filler sentences.

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?

Covers the wait semantics, idempotent re-invocation, and auth scope, which is most of what an agent needs for a two-parameter async wait tool. Missing pieces are the shape of a successful return (no output schema exists) and its relationship to air_start_assessment / air_run_assessment_from_file in a longer workflow.

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 50%: timeoutMs already carries default/max in the schema and the description only restates it as the wait bound. For assessmentPid the description adds that reusing the same value continues the same wait, which is useful semantics, but gives no format or source for the PID. Roughly baseline-level.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (wait for assessment) and enumerates the terminal conditions it waits on: completed, failed, reportAvailable. It does not differentiate itself from the similarly named sibling air_wait_for_document_extraction, but an agent can still tell what resource this operates on.

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?

Gives explicit follow-up guidance: if the budget runs out with ready:false, call again with the same assessmentPid to keep waiting. It doesn't state when to prefer this over polling air_get_assessment/air_list_assessments, so alternatives are left implicit.

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