Skip to main content
Glama

Submit a device batch job

submit_device_batch
Idempotent

Queues a batch job to check up to 5,000 devices for CVEs affecting each exact version, returning a job_id; retrieve paginated results with get_device_batch.

Instructions

Queue a batch job that checks a long device list (up to 5,000 devices) for the CVEs affecting each exact version. Returns at once with a job_id; then call get_device_batch with it until the job is finished and read the results page by page. Each result is the same as a correlate_devices result. Use this instead of correlate_devices for hundreds or thousands of devices. The job uses the key's quota for every device when it is queued (devices left unprocessed after a cancel are refunded). Sending the exact same list and max_findings again within 24 hours returns the original job instead of a new one, so a retry never charges twice. Needs a partner or customer key with batch jobs enabled; trial keys and demo mode cannot use it. Never send host names, IP or MAC addresses, user names or site names; such fields are stripped and listed under privacy. 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": {
      "assets": "<assets>"
    },
    "name": "submit_device_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetsYesDevices to check, at most 5,000: vendor, product, version and an optional neutral asset_id.
max_findingsNoFindings kept per device, highest priority first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.3

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover the safety profile (non-read-only, open-world, idempotent, non-destructive); the description adds the operational details an agent actually needs: quota is charged per device at queue time with refunds for unprocessed devices after a cancel, a 24-hour dedupe on identical list plus max_findings prevents double charging, host names/IPs/MACs/user/site names are stripped and reported under privacy, and errors carry retry_guidance with an explicit never-retry-when-retryable-is-false rule. No contradiction with the annotations — readOnlyHint=false is consistent with queueing a job.

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?

Purpose and the correlate_devices contrast are front-loaded, and nearly every sentence carries distinct information. It is delivered as one dense block though; the quota/idempotency/auth/privacy/error clauses would scan better as separate grouped statements, and the error-format sentence is the least specific to this tool.

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 two-parameter async job with no output schema, the definition covers the full lifecycle: submission returns a job_id immediately, results are read page by page via get_device_batch and match correlate_devices result shape. Combined with quota, idempotency, auth eligibility, privacy stripping and error contract, an agent has everything needed to call and follow up correctly.

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; the description goes beyond it by tying max_findings to the idempotency key ('same list and max_findings again within 24 hours') and by reinforcing the 5,000 cap and neutral-field constraint on assets. It does not add per-field format guidance beyond what the schema already documents, so it stops short of 5.

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 first sentence gives a specific verb (queue), resource (batch job), scope (up to 5,000 devices) and the exact semantics (CVEs per exact version). It explicitly contrasts with correlate_devices, so an agent can distinguish it from the synchronous sibling without opening the schema.

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 states the selection rule outright: use this instead of correlate_devices for hundreds or thousands of devices. It also names the preconditions (partner or customer key with batch jobs enabled; trial keys and demo mode excluded) and the follow-up path (call get_device_batch until finished), covering when-to-use, when-not, and the alternative.

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