Skip to main content
Glama

benchmark_remote_ssh

Benchmark an ONNX model on a POSIX SSH target without installing an agent, using existing Python and ONNX Runtime; validate FPS, P95 latency, and model-size limits for deployment pass/fail.

Instructions

Agentlessly benchmark an ONNX model on a POSIX SSH target using its existing Python and ONNX Runtime environment. Credentials remain in the user SSH configuration/agent.

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": {
      "target": "<target>",
      "model": "<model>"
    },
    "name": "benchmark_remote_ssh"
  }
}

Input Schema

NameRequiredDescriptionDefault
runsNo
modelYesAbsolute path to the .onnx model file
minFpsNo
targetYesSSH host alias or user@host
warmupNo
maxP95MsNo
providerNo
maxModelMbNo
inputShapesNoPer-input shape overrides for dynamic models, e.g. {"images": [1, 3, 640, 640]}
requireProviderNoGate check: fail unless this execution provider was actually used (e.g. CUDAExecutionProvider)
defaultDynamicDimNoValue substituted for dynamic dimensions without an explicit override (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, openWorld=true, idempotent=false, so the safety profile is covered. The description adds genuine behavioral context beyond that: nothing is installed on the target ('agentlessly') and credentials are never passed to the tool, they stay in the user's SSH configuration/agent. It leaves unstated whether temporary files or processes are left on the remote after the run.

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?

Two tight sentences with the verb front-loaded and no filler; the credential note is a useful second beat. It is efficient, though the compression contributes to the ambiguity about where the model file lives.

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

Completeness2/5

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

This is an 11-parameter, open-world execution tool with a nested object parameter and no output schema, so the description should explain what a run returns (FPS, p95 latency, provider actually used) and how the model reaches the host. Neither is addressed, and more than half the parameters are undocumented in both schema and description.

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

Parameters2/5

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

Schema description coverage is 45% with 11 parameters, so the description needs to compensate and does not — runs, warmup, minFps, maxP95Ms, provider and maxModelMb carry no meaning in either place. Critically, the description does not resolve whether the required 'model' path is local (to be transferred) or already on the remote host, which is the single most consequential ambiguity for calling this correctly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('benchmark an ONNX model') plus the execution mode ('agentless', on a 'POSIX SSH target using its existing Python and ONNX Runtime environment'), which implicitly separates it from the sibling benchmark_local. It never names that sibling explicitly, so the differentiation is inferred rather than declared.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The scenario is implied: use this when the model must run on a remote POSIX host that already has Python/ONNX Runtime, with auth coming from SSH config/agent. There is no explicit when-not guidance, no mention of running ssh_preflight first, and no stated prerequisite that the target must already have the runtime installed.

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