Skip to main content
Glama

Check a background agy task

agy_status

Check a background agy task's status, stream recent activity, and retrieve its final result when done or errored; use the returned cursor to poll only new updates.

Instructions

Check on a background agy task started with agy_ask/agy_continue's background:true. Returns its current status, recent activity (tool calls, response text as it streams in), and — once it's done or errored — the same result object a blocking call would have returned. Pass the response's next_cursor back as after_cursor on your next call so repeat polls only show what's new, instead of re-showing the same overlapping window of recent activity every time. agy is a cheap, fast model and explores well, but it fabricates file paths, line numbers, function names, and quoted code with some regularity. Treat everything in response as an unverified lead, not fact: before repeating a specific claim (a path, a symbol, a line number, an exact quote) to the user or acting on it, confirm it yourself with Read/Grep/Glob.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task_id": "<task_id>"
    },
    "name": "agy_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYestask_id returned when the task was started with background:true.
after_cursorNoPass the next_cursor from a previous agy_status call on this task to get only activity newer than that, instead of the default last-20-events snapshot. With this set, a wait_seconds long-poll also returns as soon as any new activity shows up, not just on completion — so repeated polling stays cheap and non-redundant.
wait_secondsNoIf the task is still running (and, when after_cursor is set, has no new activity yet), long-poll for up to this many seconds before returning. 0 (default) returns the current status right away. Keep this well under your own client's tool-call timeout — if this call itself times out while the underlying agy process is still running, the client may kill/restart this MCP server to recover, which kills every task tracked in it (background tasks are in-memory only). For a long-running task, prefer several short polls over one long one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses what is returned (status, streaming tool calls/response text, and the final result object once done or errored), the cursor/window behavior, and the non-obvious risk that a timed-out call can get the MCP server killed, destroying all in-memory background tasks. It also warns that agy fabricates paths, symbols and quotes, which is crucial operational context.

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?

Front-loaded with purpose and mechanics, then the reliability caveat. Dense but nearly every sentence earns its place; the cursor advice appears in both the description and the schema, a small redundancy.

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?

No output schema exists, so the description explains return values and lifecycle states (running vs done vs errored). For a three-parameter polling tool with no annotations, nothing an agent needs to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning about the after_cursor/next_cursor loop and how it interacts with long-polling. The wait_seconds guidance is reiterated beyond the schema, with only marginal new detail.

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?

States a specific verb and resource ('Check on a background agy task') and pins the scope to tasks started with agy_ask/agy_continue's background:true, which cleanly separates it from those blocking siblings. An agent knows immediately this is the polling/status counterpart.

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?

Explicitly tells the agent how to use it: poll for status, pass next_cursor back as after_cursor to avoid re-showing overlapping windows, and prefer several short polls over one long one for long-running tasks. It also names the sibling tools that create the tasks it monitors, so the when-to-use context is complete.

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