Skip to main content
Glama

Get batch job results

get_device_batch
Read-onlyIdempotent

Retrieves status and paged results for a device vulnerability batch job, reporting progress, failures, and pagination cursors so you can monitor completion and collect outcomes.

Instructions

Status and results of a batch job from submit_device_batch. While the job is queued or running it returns progress (done, failed, total); once finished it returns the summary and one page of results in submission order. Each result has the same fields and honesty rules as correlate_devices: report needs_review and partial coverage honestly and never call an empty, unresolved or partial result clean. When next_cursor is not null, call again with cursor=next_cursor for the next page. Devices that failed are listed with an error_code. Results are kept 30 days. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

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": {
      "job_id": "<job_id>"
    },
    "name": "get_device_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoThe next_cursor from the previous page; leave out for the first page.
job_idYesThe job_id returned by submit_device_batch.
page_sizeNoDevices per page, at most 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.3

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: the two-phase response shape (progress vs. summary+page), submission-order paging, a 30-day retention window, and a structured error contract whose first segment is an action and whose trailer is retry_guidance. That is exactly the operational detail an agent needs to poll safely.

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 the purpose, then lifecycle, then paging, then error handling — a sensible order with no filler sentences. It is dense and slightly long, and the honesty-rules clause duplicates guidance attributable to correlate_devices, but each sentence still carries actionable content.

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?

With no output schema, the description carries the full burden of describing returns, and it does: progress counters, summary plus one page of ordered results, per-device error_code, and next_cursor-based continuation. Paging, retention, and failure handling are all covered for a three-parameter read tool.

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 schema already defines job_id, cursor, and page_size. The description still adds value by tying cursor to the 'next_cursor' value returned in the previous response, which clarifies the coupling the schema alone only hints at.

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 ('Status and results of a batch job') and anchors it to the producing sibling ('from submit_device_batch'). An agent can immediately tell this is the poller for a job it previously submitted, distinct from correlate_devices or check_changes.

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 clear situational guidance: call after submit_device_batch, expect progress while queued/running and paged results once finished, and re-call with cursor=next_cursor when next_cursor is non-null. It also states the retry rule (never retry when retryable is false). It stops short of naming any alternative tool or stating when not to poll.

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