Skip to main content
Glama

stop_mock_server

Stops a running mock server on a specified port, freeing the port and ending mock API responses when testing is complete.

Instructions

Stop a running mock server on a given port.

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": {
      "port": "<port>"
    },
    "name": "stop_mock_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and discloses almost nothing: it doesn't say whether the call is idempotent, what error surfaces if the port hosts no mock server, whether in-flight requests are aborted, or whether server logs are retained. For a process-control mutation these are exactly the behaviors an agent needs to predict.

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?

One sentence, front-loaded with the action verb, with no filler. Brevity is appropriate for a simple control call, though it is under-specified rather than efficiently concise.

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

Completeness3/5

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

The tool is simple (one required integer, no output schema, no nesting), so a short description is acceptable, but the absence of error and idempotency behavior leaves a real gap for a state-changing control call with zero annotation coverage.

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 0% for the single 'port' parameter, and the description only weakly compensates by framing the port as the identifier of the server to stop. It adds no format detail such as whether the port must match the exact port the server was started on or whether a default 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 gives a specific verb ('Stop') and resource ('a running mock server') plus the scoping key ('on a given port'), which is enough to distinguish it from the sibling start_mock_server by verb alone. It stops short of explicitly naming the counterpart tool, so an agent must infer the pairing.

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: the agent can deduce this is the teardown counterpart to mock server startup, but the description never states when to call it (after tests, before re-binding a port) or what to do instead when no server is running.

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