Skip to main content
Glama

proxy_transparent_status

Retrieve the current status of the transparent proxy listener, including its port and traffic count.

Instructions

Get status of the transparent proxy listener including port and traffic count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'proxy_transparent_status' tool. Registers an MCP tool that returns the status of the transparent proxy listener (running state, port, and traffic count) by calling proxyManager.getTransparentStatus().
    server.tool(
      "proxy_transparent_status",
      "Get status of the transparent proxy listener including port and traffic count.",
      {},
      async () => {
        return {
          content: [{
            type: "text",
            text: JSON.stringify({ status: "success", ...proxyManager.getTransparentStatus() }),
          }],
        };
      },
    );
  • The schema for the 'proxy_transparent_status' tool is empty ({}), indicating it takes no input parameters.
    {},
  • The registration function 'registerTransparentTools' is exported and called in src/index.ts at line 72 to register all transparent proxy tools including 'proxy_transparent_status'.
    export function registerTransparentTools(server: McpServer): void {
      server.tool(
        "proxy_start_transparent",
        "Start the transparent proxy listener. Receives iptables-redirected traffic (no CONNECT tunnels). Shares the same CA cert, rules, and traffic buffer as the explicit proxy. The explicit proxy must be started first.",
        {
          port: z.number().optional().default(8443).describe("Port for the transparent listener (default: 8443)"),
        },
        async ({ port }) => {
          try {
            const result = await proxyManager.startTransparent(port);
            const localIP = getLocalIP();
            return {
              content: [{
                type: "text",
                text: JSON.stringify({
                  status: "success",
                  port: result.port,
                  instructions: [
                    `Transparent listener active on ${localIP}:${result.port}`,
                    "Traffic will be captured in the same buffer as the explicit proxy (tagged as 'transparent')",
                  ],
                }),
              }],
            };
          } catch (e) {
            return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: String(e) }) }] };
          }
        },
      );
    
      server.tool(
        "proxy_stop_transparent",
        "Stop the transparent proxy listener.",
        {},
        async () => {
          try {
            await proxyManager.stopTransparent();
            return {
              content: [{
                type: "text",
                text: JSON.stringify({ status: "success", message: "Transparent proxy stopped." }),
              }],
            };
          } catch (e) {
            return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: String(e) }) }] };
          }
        },
      );
    
      server.tool(
        "proxy_transparent_status",
        "Get status of the transparent proxy listener including port and traffic count.",
        {},
        async () => {
          return {
            content: [{
              type: "text",
              text: JSON.stringify({ status: "success", ...proxyManager.getTransparentStatus() }),
            }],
          };
        },
      );
    }
  • The helper method 'getTransparentStatus()' on the ProxyManager class, which returns the status object consumed by the handler, including running state, port, and trafficCount.
    getTransparentStatus(): object {
      return {
        running: this._transparentRunning,
        port: this.transparentPort,
        trafficCount: this.transparentTrafficCount,
      };
    }
  • src/index.ts:72-72 (registration)
    The call site in the entry point where registerTransparentTools is invoked, registering all transparent proxy tools on the MCP server.
    registerTransparentTools(server);
Behavior4/5

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

No annotations available, so description must stand alone. It discloses that the tool returns port and traffic count, indicating a read-only operation. No contradictions or hidden behaviors implied.

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?

Single sentence with no fluff, directly conveys purpose and key outputs. Perfectly concise.

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?

Given no parameters and no output schema, the description adequately explains what the tool does and what it returns (port and traffic count). Sufficient for a simple status check.

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?

Input schema has zero parameters, so description does not need to add parameter meaning. Baseline score reflects appropriate handling.

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?

Clearly states it retrieves status of the transparent proxy listener, specifying port and traffic count. Distinct from sibling tools like proxy_status or proxy_session_status by naming and specificity.

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?

No explicit when-to-use or alternatives, but context implies it is for transparent proxy listener status. Siblings include similar status tools, so guidance would help but is not missing critical info.

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/yfe404/proxy-mcp'

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