Skip to main content
Glama

proxy_get_exchange

Retrieve complete HTTP exchange details including headers and body previews from captured network traffic using an exchange ID.

Instructions

Get full details of a captured HTTP exchange including headers and body previews.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exchange_idYesExchange ID from proxy_list_traffic

Implementation Reference

  • MCP tool definition and handler for 'proxy_get_exchange'. It retrieves exchange details using 'proxyManager.getExchange' and formats the output.
    server.tool(
      "proxy_get_exchange",
      "Get full details of a captured HTTP exchange including headers and body previews.",
      {
        exchange_id: z.string().describe("Exchange ID from proxy_list_traffic"),
      },
      async ({ exchange_id }) => {
        const exchange = proxyManager.getExchange(exchange_id);
        if (!exchange) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: `Exchange '${exchange_id}' not found` }) }] };
        }
        return {
          content: [{
            type: "text",
            text: truncateResult({ status: "success", exchange }),
          }],
        };
      },
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