Skip to main content
Glama

get_device_input_batch

One received batch, decoded: its series with labels and values, or its NCPA checks. Remote Write (1.0 and 2.0), OTLP (protobuf or JSON) and NRDP become the same shape: series (name, labels, points as [milliseconds, value], and type/unit/help when the collector sent them; OTLP points also carry resource, an index into resources) or checks for NCPA (host, service, state 0–3, output, perfdata). A value JSON cannot hold comes as a string: "NaN", "+Inf", "-Inf" or "stale". Very large batches keep the first 5,000 series (truncated). newer/older are the neighbouring batch ids, for moving through the history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesDevice environment UUID v4; the report URL is a one-hour write capability.
batchYesThe batch `id` from the history list.
collectorYesalloy, telegraf, opentelemetry, ncpa, collectd or snmp.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses several important behaviors: the unified shape across protocols, the handling of non-JSON values as strings, the truncation of very large batches to 5,000 series, and the `newer`/`older` navigation fields. This is substantial behavioral context beyond what a schema would provide. It doesn't mention auth requirements or rate limits, but the described behaviors are rich and useful.

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 dense but well-structured, front-loading the core purpose and then explaining the unified shape, edge cases, and navigation. Every sentence earns its place, though the length is substantial. It is not overly verbose given the complexity of the tool's behavior, and the structure is logical.

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

Completeness4/5

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

Given the tool's complexity (multiple protocols, unified shape, edge cases, truncation, navigation), the description is quite complete. It explains the return shape, edge cases, and navigation fields. It doesn't have an output schema, so the description must explain return values, and it does so thoroughly. Minor gaps include not explaining the `resources` array structure in detail, but the overall context is strong.

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%, so the schema already documents all three parameters. The description adds context about the batch id being from the history list and the collector enum values, but it doesn't add significant new meaning beyond the schema. The baseline of 3 is appropriate because the schema does the heavy lifting, and the description's added context is marginal.

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 clearly states the tool's purpose: it decodes one received batch into a unified shape of series or NCPA checks. It names the specific resource (a received batch) and the verb (get/decode), and distinguishes it from sibling tools like list_device_input_history and get_device_input_setup. The description is detailed and specific, leaving no ambiguity about what the tool does.

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?

The description explains the context of use: it operates on a batch from the history list, and mentions the `newer`/`older` neighboring batch ids for moving through history. It doesn't explicitly state when to use this tool versus alternatives, but the context is clear enough that an agent can infer it is the tool for retrieving a specific decoded batch. It lacks explicit exclusions or alternative routing, but the context is strong.

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.

Resources