Skip to main content
Glama

Ping

ping
Read-only

Connect to a peer if needed, measure round-trip time, and identify whether the path is direct, LAN, or relayed.

Instructions

Connect to a peer if needed and measure the round trip; says whether the path is direct, LAN or relayed.

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": {
      "peer": "<peer>"
    },
    "name": "ping"
  }
}

Input Schema

NameRequiredDescriptionDefault
peerYesThe peer's 9-digit rockd ID (from `devices` / `status`), or IP:port to dial directly

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only say readOnlyHint=true and openWorldHint=true; the description adds genuinely useful behavior beyond that: the call may first establish a connection to the peer, and it consumes time while measuring RTT. It also discloses what the result conveys (direct vs LAN vs relayed path), which annotations do not cover. It stops short of saying anything about latency cost, timeouts, or failure behavior.

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?

One compact sentence with the action and the returned information front-loaded; no filler, no redundancy with the title.

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?

For a single-parameter, side-effect-aware diagnostic tool with no output schema, the description covers purpose, the conditional connection step, and the shape of the answer. Return format/units and error or timeout behavior remain unspecified, which is the main remaining gap.

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 coverage is 100% and the single `peer` parameter already documents both accepted forms (9-digit rockd ID from `devices`/`status`, or IP:port). The description adds no syntax or format detail beyond that, so the schema does the heavy lifting and baseline 3 applies.

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?

The description names a specific action (measure the round trip to a peer) and even previews the result taxonomy (direct / LAN / relayed), which is far more than a name restatement. It is clearly distinct from listing tools like `devices` or `status`, though it never explicitly contrasts itself with any sibling.

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 phrase 'Connect to a peer if needed' implies a conditional use case (checking connectivity/quality), but offers no explicit when-to-use, when-not-to-use, or named alternative such as `devices`/`status` for discovery. Usage must be inferred.

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