Skip to main content
Glama

test_mcp_server

Run a real JSON-RPC initialize and tools/list handshake against a stdio, HTTP, or SSE MCP server to return latency, discovered tool count, and command or stderr errors.

Instructions

Spawn a target stdio MCP server command (or probe an HTTP/SSE MCP endpoint) and perform a real JSON-RPC initialize + tools/list handshake, returning latency, discovered tool count, and any command/stderr errors.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "test_mcp_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoOptional environment variables to pass when spawning the server.
urlNoEndpoint URL for http/sse servers.
argsNoCommand arguments for stdio servers.
nameNoHuman-readable name for the server being tested.
commandNoExecutable command for stdio servers (e.g. 'npx' or 'node').
timeoutMsNoHandshake timeout in milliseconds (default: 8000).
transportNoTransport type (default: 'stdio').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses that an external process is spawned or an endpoint probed, that a real handshake is executed, what is returned (latency, discovered tool count, command/stderr errors), and that a timeout applies. It omits whether the spawned process is terminated afterwards, what happens on handshake failure (throw vs. structured error), and any safety caveats about executing arbitrary commands.

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?

A single front-loaded sentence that states the action, the two modes, and the return payload with no filler. Every clause earns its place.

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 7-parameter tool with no annotations and no output schema, the description covers what it does, the two transport modes, and the shape of the result. The remaining gap is lifecycle and failure semantics (process cleanup, error signaling), which matters for a tool that launches external commands.

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%, so every parameter already has documentation, and the description adds only the high-level split between the stdio path (command/args/env) and the HTTP/SSE path (url). That framing is mildly useful for choosing which parameters apply, but it does not add syntax or format detail beyond the schema.

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 gives a specific verb-plus-resource pair: it spawns a stdio server command or probes an HTTP/SSE endpoint and runs a real JSON-RPC initialize + tools/list handshake. The scope (live server smoke test) is clearly distinct from the config-oriented siblings, though no sibling is named explicitly.

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?

Usage is only implied: performing a 'real' handshake suggests this is for verifying a server actually works, as opposed to diagnosing configs or repairing them. There is no explicit when-to-use, when-not-to-use, or statement of which alternative to pick for a config-only problem.

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