Skip to main content
Glama

close_page

Close a specific browser page using its page ID; the last open page stays open. Call list_pages first to get valid page IDs.

Instructions

Closes the page by its index. The last open page cannot be closed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdYesThe ID of the page to close. Call list_pages to list pages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=false, so the description carries most of the burden and does add real behavioral value by disclosing the failure case that the last open page cannot be closed. It stops short of saying whether page state is destroyed or recoverable, which would be useful for a mutation tool.

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?

Two short sentences, purpose front-loaded, constraint second. Nothing extraneous and nothing buried.

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

Completeness4/5

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

For a single-parameter tool with no output schema and only a readOnlyHint annotation, the description covers purpose and the key failure condition adequately. It could note the effect on browser state after closing, but that is a minor gap.

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 the schema already explains pageId fully, including the hint to call list_pages, so the baseline is 3. The description's 'by its index' wording adds no detail and mildly conflicts with the schema's 'ID' framing.

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 ('Closes the page') that clearly distinguishes it from siblings like new_page, select_page, and navigate_page. The qualifier 'by its index' is slightly at odds with the schema's pageId terminology, but the core purpose is unambiguous.

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 the tool's use (closing an open page) and adds one important constraint — the last open page cannot be closed — but never states when to prefer this over alternatives or what prerequisites exist. Usage is inferable rather than explicit.

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