Skip to main content
Glama
Browser MCP Server

Browser MCP Server

close_page

Close a browser tab by its page ID to free resources and keep sessions tidy. Use it when a tab is no longer needed during automated browsing workflows.

Instructions

Close a tab.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pageId": "<pageId>"
    },
    "name": "close_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYesPage ID to close

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and discloses almost nothing: it does not say whether unsaved state is discarded, whether the page must exist, whether closing affects other tabs, or what happens on an invalid pageId. For a destructive-feeling mutation of browser state, 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three words, front-loaded, with no filler or redundancy. It is efficient, though the terseness is a symptom of under-specification rather than a model of completeness.

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?

The tool is simple, the parameter is fully described in the schema, and there is no output schema to explain, so little is strictly required. However, with zero annotations the description should at least cover side effects and the interaction with close_browser, which it omits.

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% and there is a single required parameter, so the schema fully documents pageId and its type. The description adds no meaning beyond that (e.g., how pageId is obtained or whether it is the active tab), so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Close a tab"), which is enough for an agent to know it terminates a tab rather than the whole browser. It does not explicitly name the distinction from close_browser, but the resource noun carries most of that differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus close_browser or new_page, nor on prerequisites such as whether the tab must be the active one or whether closing the last tab is allowed. The agent must infer all routing decisions from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.