Skip to main content
Glama

Close web debug session

web_session_close
DestructiveIdempotent

Close an active browser debugging session and release resources, with optional artifact retention or deletion.

Instructions

Close the selected session and release any browser resources owned by it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYes
artifactPolicyNoretain

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNo
errorNo
warningsYes
artifactsYes
Behavior4/5

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

Annotations establish destructive, non-read-only, idempotent, and closed-world behavior. The description adds a useful behavioral trait by stating that browser resources owned by the session will be released. It does not explain the artifactPolicy delete/retain consequence, but the destructive hint already signals the risk.

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?

A single sentence with the action front-loaded and no wasted words. The resource-release consequence is folded in economically.

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?

For a simple close action, the core behavior is clear, and the output schema plus annotations cover returns and safety. However, the description does not clarify artifactPolicy or what 'selected session' means relative to sessionId, so it is only adequate, not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does not. It never names sessionId or artifactPolicy, and 'selected session' only loosely maps to the required sessionId. The meaning of artifactPolicy's retain/delete values is left entirely to the agent.

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 states a specific action ('Close'), resource ('session'), and consequence ('release any browser resources owned by it'), making the purpose unmistakable. It is clearly distinct from sibling tools like web_session_start and web_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 this is the tool to use when a debug session should be closed, but it offers no explicit when/when-not guidance, alternatives, prerequisites, or advice about artifactPolicy. Usage context is left to inference.

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/MarlonJD/web-debug-mcp'

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