Skip to main content
Glama
puppeteer-mcp-claude

puppeteer-mcp-claude

by jaenster

puppeteer_close_page

Closes a specific browser tab by its page ID, freeing resources and keeping the Puppeteer session tidy.

Instructions

Close a specific tab.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "puppeteer_close_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it says nothing about what happens if the target page is already closed, whether the operation errors, or what state the browser is left in. It also omits what closing the last remaining tab does, which is a meaningful behavioral question for a browser-automation tool.

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?

A single front-loaded sentence with no wasted words. Its brevity is appropriate in form, though the space saved is spent nowhere useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool this is close to adequate, but the optional pageId with zero documentation leaves the agent unable to predict behavior when the argument is omitted. No annotations and no output schema mean the description had to cover this and does not.

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

Parameters2/5

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

Schema coverage is 0% and the single pageId parameter is optional and undocumented, so the critical ambiguity — which tab is closed when pageId is omitted — is resolved nowhere. The description does not even mention pageId, adding no meaning beyond the bare schema.

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') and the qualifier 'specific' implicitly distinguishes it from puppeteer_close_browser, which closes the whole browser. It never names the sibling, so the differentiation is left to inference.

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 puppeteer_close_browser or puppeteer_new_page, and no mention of preconditions such as the page needing to be open. Usage is only implied by the tool name.

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