Skip to main content
Glama

actiond_job_wait

Read-onlyIdempotent

Block until a CI/CD job reaches a terminal status and return its full details, with an optional timeout to avoid indefinite waiting.

Instructions

Block until the given CI/CD job reaches a terminal status (done/failed/error/cancelled), then return the full job detail. Call it right after a push surfaces job IDs — for example, immediately after "lgh up" reports triggered_job_ids. The optional timeout in seconds (default 300) aborts the wait with an error if the job is still unfinished; it never cancels the job itself. Prefer this over polling actiond_action_get; use actiond_job_cancel to abort a stuck job instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesJob ID to wait for
timeoutNoTimeout in seconds (default 300)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.1.1
    • changedInput schema / properties / id / description
      Previous value: -"任务 ID"New value: +"Job ID to wait for"
    • changedInput schema / properties / timeout / description
      Previous value: -"超时秒数(默认 300)"New value: +"Timeout in seconds (default 300)"
  2. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

The description discloses that the tool blocks, has a timeout that aborts with an error, and never cancels the job itself. This adds behavioral context beyond the annotations (readOnlyHint, idempotentHint, destructiveHint), which are consistent with these statements.

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 concise yet thorough, with each sentence serving a distinct purpose: describing the blocking behavior, specifying when to call it, explaining the timeout effect, and directing to alternatives. No fluff or redundancy is present.

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 tool with no output schema, the description fully covers the necessary context: what it does, when to use it, timeout behavior, and related tools. It leaves no ambiguity for an agent to decide when and how to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already describes both parameters (id and timeout) with 100% coverage, but the description adds the default timeout value (300 seconds) and explains that the timeout aborts with an error without canceling the job. This provides meaningful additional meaning beyond the schema.

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 clearly states the tool blocks until a CI/CD job reaches terminal status and returns the full job detail, which is a specific verb and resource. It also distinguishes itself from polling actiond_action_get and mentions actiond_job_cancel for aborting, providing clear differentiation from siblings.

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 says to call it right after a push surfaces job IDs, with a concrete example ('lgh up' reports triggered_job_ids). It also states when not to use it: prefer over polling and use actiond_job_cancel for aborting, giving clear when-to and when-not-to guidance.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JoeGlenn1213/ActionD'

If you have feedback or need assistance with the MCP directory API, please join our Discord server