Skip to main content
Glama

mcp-coreclaw

poll_run

Read-onlyIdempotent

Poll a CoreClaw worker run until it reaches a terminal state (succeeded/failed/aborted) or the timeout elapses, then return the final status and optionally a result preview.

WHEN TO USE: Use when run_worker returned an async run and the caller wants to wait for completion without manually calling get_worker_run in a loop. Covers slow workers (LinkedIn/YouTube/glassdoor 60-285s) that exceed a single MCP call. 中文触发: 当用户要在 CoreClaw 中查询、运行、重跑、停止、导出或查看对应 worker/run/task 数据时使用。

WHEN NOT TO USE: Do not use public web search or code search for private CoreClaw platform data. Do not call excluded internal worker-version or internal-detail APIs.

RETURNS: JSON with final status, err_msg, poll_count, elapsed_ms, and (on success) result count + first-row sample fields.

WORKFLOW: Call after run_worker or rerun_worker_run. Follow with verify_run for a PASS/NO_DATA verdict, or list_worker_run_results / get_worker_run_log for detail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoWhen the run succeeds, pre-fetch this many result rows for the preview. 0 disables. (default: 10)
run_idYesWorker run identifier. Example: "01KKDXV2G26BT7NH4ZQR2R4NPZ". Obtain from run_worker, list_worker_runs, or get_last_worker_run.
timeout_secondsNoMaximum total seconds to poll before giving up. (default: 300)
poll_interval_secondsNoSeconds between status checks. (default: 5)

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so safety is covered. The description adds behavioral context beyond annotations: polling until terminal state or timeout, return fields (status, err_msg, poll_count, elapsed_ms), result preview behavior, and the intended workflow with sibling tools.

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?

The description is well structured with front-loaded purpose and labeled sections (WHEN TO USE, WHEN NOT TO USE, RETURNS, WORKFLOW). It is somewhat long, and the Chinese trigger sentence is broad and not specifically tied to polling, while the WHEN NOT TO USE section contains vague statements about excluded APIs, which slightly reduce clarity.

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?

The description covers the complete lifecycle: when to call it, what it returns (status, err_msg, poll_count, elapsed_ms, result preview), and what follow-up tools to use. Without an output schema, the RETURNS section provides the needed expectation of response shape. It also accounts for the complex async run scenario and long-running workers.

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% and each parameter already has a detailed description with defaults, ranges, and source guidance. The tool description does not add meaningful parameter-level semantics beyond vaguely referencing 'result preview' and 'timeout elapses', so the baseline of 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 opens with a specific verb ('Poll') and resource ('CoreClaw worker run'), and clearly states the outcome: wait until a terminal state or timeout, then return final status and optionally a result preview. It also distinguishes itself from get_worker_run by explicitly noting it avoids manual polling loops.

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?

The description includes dedicated WHEN TO USE and WHEN NOT TO USE sections, naming concrete alternatives like get_worker_run, verify_run, list_worker_run_results, and get_worker_run_log. It also gives workflow context (call after run_worker or rerun_worker_run) and mentions slow worker durations (60-285s) to justify polling.

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.

TDQS

A3.7/5.0
Disambiguation3/5

Most tools follow a systematic scope pattern (user's last run, worker's last run, specific run), so intent is discernible, but the reversed word order (e.g., get_last_worker_run vs get_worker_last_run) makes many tools easy to conflate. Descriptions are thorough, yet the sheer number of near-identical names creates real misselection risk.

Naming Consistency3/5

Verbs and nouns are consistently snake_case, but the modifier order alternates unpredictably—some tools say last_worker_run, others worker_last_run—across abort/export/get/list/rerun groups. This inconsistency makes the set feel less coherent than a strict verb_noun pattern would.

Tool Count2/5

At 42 tools, the surface is heavily inflated by triplicating every run-related action across user-last, worker-last, and specific-run scopes. Many of these could be consolidated into a single tool with optional worker_id/run_id parameters, making the count feel excessive for the domain.

Completeness4/5

The surface covers the full lifecycle of workers, runs, tasks, queue, and account, including poll/verify/batch operations that go beyond basic CRUD. Minor gaps exist (e.g., no explicit run-input retrieval, no worker editing), but agents can achieve all common workflows without dead ends.

Resources