Skip to main content
Glama
ngsrv
by ngsrv

Stop tunnel

tunnel.stop
DestructiveIdempotent

Stop an active tunnel by providing the local port number. Retrieve the list of active ports before stopping.

Instructions

Stop an ngsrv tunnel started by this MCP session. Pass the same port given to tunnel.start. Call tunnel.list first if you are unsure which ports are active.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYesLocal port of the tunnel to stop. Must match a port from tunnel.list. Example: 3000.
Behavior4/5

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

Annotations indicate destructiveHint and idempotentHint. Description adds that it only stops tunnels started by this session and emphasizes correct port usage. Minor gap: no details on behavior if tunnel doesn't exist.

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?

Two sentences, no unnecessary words, front-loaded with purpose and immediate action guidance.

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 simple tool with one required parameter and no output schema, the description is complete: covers what, how, and when to use, with sibling guidance.

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 covers parameter fully. Description adds context that port must match from tunnel.start and suggests verification via tunnel.list, beyond schema's type and range.

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?

The description clearly states it stops a tunnel started by the MCP session, using the verb 'stop' and specifying the resource 'ngsrv tunnel'. It distinguishes from siblings like tunnel.start and tunnel.list.

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?

Provides explicit guidance to pass the same port from tunnel.start and suggests calling tunnel.list first if unsure, offering a clear alternative and prerequisite.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ngsrv/ngsrv-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server