Skip to main content
Glama
Arc DevTools MCP Server

Arc DevTools MCP Server

by fukayatti

close_page

Closes an Arc browser page by its index to manage open tabs; the last remaining page cannot be closed. Use after listing pages to remove a specific page.

Instructions

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

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": {
      "pageIdx": "<pageIdx>"
    },
    "name": "close_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdxYesThe index of the page to close. Call list_pages to list pages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.4/5.0
Behavior4/5

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

Annotations indicate readOnlyHint=false, confirming it's a mutation, which the description's 'closes' aligns with. The description adds valuable behavioral context beyond annotations by specifying the constraint that the last open page cannot be closed, which is critical for correct usage.

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 two sentences, front-loaded with the core action and followed by a crucial constraint. Every word serves a purpose, with no redundancy or fluff, making it highly efficient.

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?

Given the tool's moderate complexity (mutation with a constraint), no output schema, and rich annotations, the description is mostly complete. It covers the action and a key behavioral rule, though it could optionally mention error handling or effects on page state for full completeness.

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 description coverage is 100%, with the parameter 'pageIdx' fully documented in the schema. The description does not add any additional meaning beyond the schema, such as format details or edge cases, so it meets the baseline for high coverage.

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 clearly states the verb ('closes') and resource ('the page by its index'), making the action specific. It distinguishes from siblings like 'list_pages' (which lists) or 'new_page' (which creates), establishing a unique purpose.

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

Usage Guidelines5/5

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

It explicitly states when not to use this tool ('The last open page cannot be closed'), providing a clear exclusion rule. It also references 'list_pages' in the schema description for obtaining the index, implying an alternative or prerequisite, though not directly in the description text.

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