close_page
Close a browser tab by its index to manage open pages in Firefox automation.
Instructions
Close tab by index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageIdx | Yes | Tab index to close |
Close a browser tab by its index to manage open pages in Firefox automation.
Close tab by index.
| Name | Required | Description | Default |
|---|---|---|---|
| pageIdx | Yes | Tab index to close |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already set readOnlyHint=false, so the description's 'close' action is consistent. However, the description adds no additional behavioral context beyond what the annotation provides, such as consequences of closing a tab (unsaved work, triggering beforeunload events). This is adequate but not exemplary.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, compact sentence that perfectly conveys the tool's purpose. Every word is necessary, and there is no extraneous information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the low complexity (single parameter, no output schema) and annotations present, the description is minimally adequate. However, it lacks context about edge cases such as closing the last tab (might close browser) or invalid index, which would help an agent anticipate behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, and the parameter's description in the schema ('Tab index to close') already explains its role. The tool description 'Close tab by index' redundantly states the same information. No additional meaning is added beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Close tab by index' is a specific verb+resource combination. It clearly states the action (close) and the target (tab) with a method (by index). It distinguishes from sibling tools like 'navigate_page' or 'new_page'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives. It does not specify prerequisites (e.g., tab must exist) or when not to use (e.g., avoid closing active tab unexpectedly). The sibling list includes many page actions, but no explicit comparison.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mozilla/firefox-devtools-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server