Skip to main content
Glama
ochen1
by ochen1

close_page

Closes a specific page by its ID, keeping at least one page open to maintain session isolation.

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.
Behavior3/5

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

Annotations indicate readOnlyHint=false, so the description's mention of closing (a mutation) aligns. The constraint about the last page adds behavioral context, but lacks details on side effects (e.g., active page switches) or error scenarios.

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 extremely concise with two sentences, no unnecessary words, and front-loaded with the core action. It earns its brevity.

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 a simple one-parameter tool with no output schema, the description covers the basic action and a constraint. However, it omits details on how to obtain the pageId (though the schema hints) and what happens after closing (e.g., focus shifts). Adequate but not rich.

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?

The input schema covers pageId with a description, but the tool description says 'by its index', which conflicts with the parameter name and schema. This confusion reduces clarity; the description should align with the 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?

The description clearly states the tool closes a page, which distinguishes it from sibling tools like navigate_page, select_page, or list_pages. However, it says 'by its index' which is slightly inconsistent with the parameter name 'pageId', causing minor ambiguity.

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?

The description only provides a constraint (last open page cannot be closed) but no guidance on when to use this tool vs alternatives, no prerequisites (like listing pages first), and no conditions for success.

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/ochen1/chrome-devtools-mcp-mux'

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