Skip to main content
Glama

get_connection_info

Get the CLI command and config file needed to manually create a tunnel, avoiding subprocess spawning. Use when the MCP server cannot spawn processes or the tunnel must outlive the server.

Instructions

Get the CLI command (and, for load-balanced tunnels, a config file) needed to create a tunnel manually — without spawning anything. Use this when the MCP server cannot spawn subprocesses (e.g. cloud sandbox), when the tunnel must outlive the MCP server, or when you prefer to run the client yourself. Accepts the same arguments as create_tunnel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNoLoad-balancing pool name (http/tcp only)
tokenNoAPI token. Optional if RUSTUNNEL_TOKEN is set.
regionNoRegion ID (e.g. 'eu', 'us', 'ap'). Omit to auto-select.
secretNoShared secret for P2P (protocol='p2p')
protocolYesTunnel type
group_keyNoShared secret for the load-balancing group
peer_nameNoP2P publisher mode: publish under this name
subdomainNoCustom subdomain (HTTP only)
local_hostNoLocal hostname to forward to (default 'localhost')
local_portYesLocal port the service is listening on
peer_targetNoP2P subscriber mode: connect to this name
health_checkNoOptional client-side health probe. The client probes the local service and reports health so the server routes around a sick backend. Only meaningful for load-balanced tunnels (group set).
Behavior4/5

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

With no annotations, the description carries full burden. It clearly notes that the tool does not spawn anything, implying read-only behavior. However, it does not mention potential side effects or error conditions. The transparency is high but not exhaustive.

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, zero waste. First sentence states function, second gives usage context. Efficient and clear.

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?

No output schema, and description does not specify return format or error handling. It covers purpose and usage well, but lacks detail on output structure and potential issues, making it somewhat incomplete for a tool with 12 parameters and no output schema.

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 baseline is 3. The description adds little beyond schema: it mentions config file only for load-balanced tunnels, a nuance not in schema. This adds some value, but does not substantially enhance parameter understanding.

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 retrieves the CLI command and optional config file for manual tunnel creation, and distinguishes it from create_tunnel by emphasizing it does not spawn anything.

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?

Explicitly states when to use: when MCP cannot spawn subprocesses, when tunnel must outlive server, or when user prefers manual execution. Also references create_tunnel as alternative.

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/joaoh82/rustunnel'

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