Skip to main content
Glama

proxy_session_stop

Stop persistent on-disk capture and finalize the active session to complete traffic recording.

Instructions

Stop persistent on-disk capture and finalize the active session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler for 'proxy_session_stop'. It calls proxyManager.stopSession() to finalize the active on-disk session capture and returns the session manifest.
    server.tool(
      "proxy_session_stop",
      "Stop persistent on-disk capture and finalize the active session.",
      {},
      async () => {
        try {
          const session = await proxyManager.stopSession();
          return {
            content: [{ type: "text", text: JSON.stringify({ status: "success", session }) }],
          };
        } catch (e) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: toError(e) }) }] };
        }
      },
    );
  • The schema for 'proxy_session_stop' is an empty object (no input parameters). The tool takes no arguments.
    {},
  • The registration function that registers all session tools including 'proxy_session_stop' via server.tool().
    export function registerSessionTools(server: McpServer): void {
  • src/index.ts:70-70 (registration)
    Where registerSessionTools is called during server initialization, registering 'proxy_session_stop' on the MCP server.
    registerSessionTools(server);
  • ProxyManager.stopSession() delegates to sessionStore.stopSession() which finalizes the active session.
    async stopSession(): Promise<SessionManifest | null> {
      return await this.sessionStore.stopSession();
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states stop and finalize but does not disclose side effects (e.g., whether captured data is saved), prerequisites, or destructive nature. This is a significant gap.

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?

The description is a single, front-loaded sentence with no wasted words. It efficiently conveys the core action.

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?

Given no parameters and no output schema, the description is minimal but adequate for a simple stop command. However, it lacks details on the post-stop state and return value, leaving some uncertainty.

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?

The input schema has zero parameters with 100% schema description coverage, so the description need not add parameter info. The baseline of 4 applies, and no additional detail is required.

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 the tool stops persistent on-disk capture and finalizes the active session. It uses a specific verb (stop) and resource (proxy session), and it distinguishes from siblings like proxy_session_start and proxy_session_status.

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?

The description implies usage for stopping a session but provides no explicit guidance on when to use this tool versus alternatives, or any prerequisites. It is adequate but lacks directive context.

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