Skip to main content
Glama

Watch a workflow run

watch_workflow
Read-only

Wait for a GitHub workflow run to finish, then report its result and return the failing log on failure.

Instructions

Wait for the latest run of a workflow (default release.yml) and report its result, with the failing log on failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirYesProject folder (absolute path, or relative to the server's working directory).
refNoOnly runs for this tag/branch, e.g. v0.1.1.
workflowNorelease.yml
waitSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuine behavior beyond that: the call blocks until the run finishes and returns the failing log on failure. It does not say what happens on timeout or how waitSeconds bounds the wait.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One tight sentence, front-loaded with the action and scope, with the failure-output detail appended rather than buried. Nothing extraneous, though the parenthetical default is redundant with the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a no-output-schema, four-parameter tool this covers the essential promise (block until done, report result, include failing log). It leaves open what happens when the wait expires and whether it observes an already-running run or triggers one, which an agent needs to reason about before calling.

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

Parameters2/5

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

Schema description coverage is only 50% (workflow has a default but no description, waitSeconds has no description at all). The description restates the release.yml default already present in the schema and says nothing about dir, ref, or waitSeconds, so it does not compensate for the coverage gap.

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 the latest run of a workflow and report its result. An agent can distinguish it from run_checks, job_status, or add_workflows. It stops short of naming which sibling to use instead when a non-blocking status check is wanted.

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 word 'Wait' implies this is a blocking/poll-until-done call, typically after a workflow has been triggered, but there is no explicit when-to-use or when-not-to-use guidance. No alternative such as job_status is named for agents that want a non-blocking check.

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