Skip to main content
Glama
NetBeez MCP Server

NetBeez MCP Server

Official
by netbeez

run_adhoc_test

Runs ad-hoc Iperf, network speed, VoIP, or custom command tests on selected NetBeez agents and returns a test run ID for checking status or retrieving results.

Instructions

Run an ad-hoc test on one or more agents. Supported test types are Iperf (5), Network Speed (7), VoIP (8), and Custom Command (11). Ping/DNS/HTTP/Traceroute cannot be run ad-hoc via this endpoint.

Creates the test run and polls until completion. Returns the multiagent_nb_test_run_id; after running, use get_multiagent_test_run_status with that ID to check status or retrieve results (e.g. if this tool times out or you need to re-check later).

• test_type: use "iperf" (or "5"), "speed"/"speedtest" (or "7"), "voip" (or "8"), or "custom"/"custom_command" (or "11"). • speedtest_type (for Network Speed only): use "ookla", "ndt", "fast", or "cloudflare" (or "1","2","3","4"). • Iperf: provide either destination_agent_id (agent-to-agent) or target (destination IP or FQDN for agent-to-server; not a NetBeez target entity). • VoIP: agent-to-agent only; destination_agent_id required. • Custom Command: provide custom_command (script body with shebang) and output_schema (array of { metric, unit }); no destination is needed.

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": {
      "agent_ids": "<agent_ids>",
      "test_type_id": "<test_type_id>"
    },
    "name": "run_adhoc_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
secureNoUse secure connection (e.g. for VoIP)
targetNoFor Iperf agent-to-server: destination IP or FQDN (the server address; not a NetBeez target entity). Not used for VoIP. Required for Iperf when not using destination_agent_id.
reverseNoReverse mode: server sends, client receives (default false)
agent_idsYesAgent IDs to run the test on (at least one)
bandwidthNoBandwidth limit in Mbps, UDP only (optional)
iperf_portNoIperf server port 1-65535 (default 5001)
iperf_timeNoIperf duration in seconds (default 10)
iperf_typeNoIperf protocol: tcp (1) or udp (2). Default: tcp.
test_type_idYesTest type. Words: iperf (5), speed or speedtest (7), voip (8), custom or custom_command (11). Numbers: 5, 7, 8, 11.
iperf_versionNoIperf version: 2 or 3 (default 3)
output_schemaNoCustom command metrics schema for test_type 11. Array of { metric, unit } entries matching script output keys.
custom_commandNoCustom command script body for test_type 11. Must start with #!/usr/bin/env bash or #!/usr/bin/env python.
speedtest_typeNoSpeed test provider (only for Network Speed tests). Words: ookla (1), ndt (2), fast or fast.com (3), cloudflare (4). Numbers: 1, 2, 3, 4. Default: ndt (2).
parallel_streamsNoParallel streams 1-16 (default 1)
destination_agent_idNoDestination agent ID. Required for VoIP. For Iperf agent-to-agent, the iperf server runs on this agent. Use either this OR target for Iperf, not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and discloses key behavior: it creates the run and polls until completion, returns multiagent_nb_test_run_id, and may time out (with the recovery path via get_multiagent_test_run_status). It does not cover permissions or rate limits, but the create-plus-poll trait is the critical unknown it resolves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and constraints in the first sentence, then bulleted per-test-type rules. Every line adds operative information; no filler or restatement of the tool name.

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 15-parameter mutation-style tool with no annotations and no output schema, the description supplies the result shape (test run ID), the async/polling semantics, the failure mode (timeout), and the retry path. 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 per-parameter meaning is already documented; the description goes further by explaining cross-parameter conditional logic the schema cannot express, such as speedtest_type applying only to Network Speed, destination_agent_id vs target being mutually exclusive for Iperf, and custom_command requiring a shebang plus output_schema.

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 ('Run an ad-hoc test on one or more agents') and immediately scopes it by naming the supported test types (Iperf 5, Network Speed 7, VoIP 8, Custom Command 11) and the excluded ones (Ping/DNS/HTTP/Traceroute). An agent can distinguish this from scheduled-test siblings 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?

Explicitly states when to use it and when not to ('Ping/DNS/HTTP/Traceroute cannot be run ad-hoc via this endpoint'), and routes follow-up work to get_multiagent_test_run_status by name with the returned ID. It also gives per-test-type invocation conditions (VoIP agent-to-agent only, Iperf destination_agent_id OR target, Custom Command needs no destination).

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